dev-master
9999999-devNetGsm Sms Entegrasyonu
MIT
The Requires
by Ramazan Uç
1.0
1.0.0.0NetGsm Sms Entegrasyonu
MIT
The Requires
by Ramazan Uç
Wallogit.com
2017 © Pedro PelĂĄez
NetGsm Sms Entegrasyonu
Install package with composer, (*1)
composer require vomsis/netgsm
In Laravel 5.5+ package will auto discovery., (*2)
Add package provider to config/app.php file, (*3)
'providers' => [
Vomsis\Netgsm\NetgsmServiceProvider::class,
]
Add alias to config/app.php file, (*4)
'aliases' => [
'Netgsm' => Vomsis\Netgsm\NetgsmFacade::class,
]
Add Netgsm API information to .env file, (*5)
NETGSM_URL=https://api.netgsm.com.tr NETGSM_USERNAME= NETGSM_PASSWORD= NETGSM_HEADER=
NETGSM_URL is API base url of netgsm. NETGSM_USERNAME and NETGSM_PASSWORD is authentication information of netgsm. NETGSM_HEADER is default header of sms messages., (*6)
You can also publish config file., (*7)
php artisan vendor:publish --provider="Vomsis\Netgsm\NetgsmServiceProvider"
Send sms to one number, (*8)
Netgsm::sendSms("50xxxxxxxx", "Message content");
You can also specify options. Like header and startDate, (*9)
Netgsm::sendSms($number, $message, $header = null, $startDate = null, $endDate = null, $lang = null);
Send sms to multiple numbers, (*10)
Netgsm::sendSms(["50xxxxxxxx", "50xxxxxxxx"], "Message Content");
This project is open-sourced software licensed under the MIT license., (*11)
NetGsm Sms Entegrasyonu
MIT
NetGsm Sms Entegrasyonu
MIT