racoonsoftware/netgsm

Laravel 5.1 Net Gsm Sms service package
44
Install
composer require racoonsoftware/netgsm
Latest Version:v2.0.0
License:BSD
Last Updated:Nov 28, 2015
Links: GitHub  ·  Packagist
Maintainer: raccoonsoftware

Laravel Net GSM Package

Gitter Latest Stable Version Total Downloads Latest Unstable Version License

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

Related Packages

macellan/netgsm

Netgsm SMS notification channel for Laravel

5,812 3
rinvex/laravel-authy

Rinvex Authy is a simple wrapper for Authy TOTP, the best rated Two-Factor Authe...

78,344 32
toplan/laravel-sms

A mobile phone number validation solution based on laravel

80,792 836
laravel-notification-channels/authy

Authy notification channel for Laravel, with the ability to send in-app, sms, an...

46,708 57
laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

9,360,230 259

Version History

Version Released License
v2.0.0 BSD
v1.0.1 BSD
v1.0.0 BSD