racoonsoftware/netgsm is a Laravel package for laravel 5.1 net gsm sms service package.
It currently has 0 GitHub stars and 44 downloads on Packagist (latest version v2.0.0).
Install it with composer require racoonsoftware/netgsm.
Discover more Laravel packages by racoonsoftware
or browse all Laravel packages to compare alternatives.
Last updated
You should install this package through Composer.
Edit your project's composer.json file to require raccoonsoftware/netgsm.
"require": {
"raccoonsoftware/netgsm": "*"
},
Next, update Composer from the Terminal:
composer update
Once this operation completes, the final step is to add the service provider.
Open app/config/app.php, and add a new item to the providers array.
'RaccoonSoftware\NetGsm\NetGsmServiceProvider::class',
And add a new item to the aliases array.
'NetGsm' => 'RaccoonSoftware\NetGsm\Facade\NetGsm::class',
Give this command
php artisan vendor:publish
and open config/netgsm.php file and fill necesary information.
Option 1
use RaccoonSoftware\NetGsm\NetGsm;
Route::get('/', function () {
$sms = new NetGsm();
return $sms->setGsmNumber("5xxxxxxxxxx")->setContent("Hello World!")->send();
});
Option 2
use RaccoonSoftware\NetGsm\NetGsm;
Route::get('/', function () {
$sms = new NetGsm();
$sms->setGsmNumber("5xxxxxxxxx");
$sms->setContent("Hello New World");
return $sms->send();
});