Laravel 5.1 Net Gsm Sms service package
43
0
4
Package Data
Maintainer Username: raccoonsoftware
Maintainer Contact: mehmet@raccoonsoftware.net (Mehmet Nuri Ozturk)
Package Create Date: 2015-11-15
Package Last Update: 2015-11-28
Language: PHP
License: BSD
Last Refreshed: 2024-11-23 03:16:27
Package Statistics
Total Downloads: 43
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 4
Total Forks: 1
Total Open Issues: 2

Laravel Net GSM Package

Gitter Latest Stable Version Total Downloads Latest Unstable Version License

  • AUTHOR MEHMET NURI OZTURK mehmet@raccoonsoftware.net

Installation

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.

Usage

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();
});