2017 © Pedro Peláez
 

library sms

Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5.Currently supported Gateways Clickatell , MVaayoo, Gupshup, SmsAchariya, SmsCountry , SmsLane , Nexmo, Mocker / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing.

image

softon/sms

Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5.Currently supported Gateways Clickatell , MVaayoo, Gupshup, SmsAchariya, SmsCountry , SmsLane , Nexmo, Mocker / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing.

  • Thursday, March 15, 2018
  • by softon
  • Repository
  • 3 Watchers
  • 28 Stars
  • 16,071 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 26 Forks
  • 2 Open issues
  • 16 Versions
  • 3 % Grown

The README.md

SMS

Simple SMS(Short Messaging Service) Gateway Package for sending short text messages from your Application. Facade for Laravel 5(Updated to work with Laravel 5.*).Currently supported Gateways Clickatell, MVaayoo, Gupshup, SmsAchariya, SmsCountry, SmsLane, Nexmo, Mocker, MSG91 / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing., (*1)

Installation, (*2)

  1. Edit the composer.json add to the require array & run composer update
     composer require softon/sms 
  2. (Optional for Laravel 5.5+) Add the service provider to the config/app.php file in Laravel
     Softon\Sms\SmsServiceProvider::class, 
  3. (Optional for Laravel 5.5) Add an alias for the Facade to the config/app.php file in Laravel
     'Sms' => Softon\Sms\Facades\Sms::class, 
  4. Publish the config & views by running
     php artisan vendor:publish --provider="Softon\Sms\SmsServiceProvider" 

Usage, (*3)

Edit the config/sms.php. Set the appropriate Gateway and its parameters. Then in your code...
Put your blade template for the SMS in the resources/views/sms folder. Then use the below lines of code to send SMS., (*4)

use Softon\Sms\Facades\Sms;  
 ```
Send Single SMS with View:-
```php
// Params: [MobileNumber,Blade View Location,SMS Params If Required]
Sms::send('9090909090','sms.test',['param1'=>'Name 1']);  
 ```
 Send Single SMS with Raw Message:-
```php
// Params: [MobileNumber,Blade View Location,SMS Params If Required]
Sms::send('9090909090','Any Message Text To be sent.');  
 ```
Send Multiple SMS:-
```php
// Params: [Array of MobileNumbers,Blade View Location,SMS Params If Required]
Sms::send(['87686655455','1212121212','2323232323'],'sms.test',['param1'=>'Name 1']);  
 ```
Select the Gateway before sending the Message:-
```php
/*****************************************************
 Gateways ::  log / clickatell / gupshup / mvaayoo / 
              smsachariya / smscountry / smslane / 
              nexmo / msg91 / mocker / custom 
*****************************************************/

Sms::gateway('mocker')->send(['87686655455','1212121212','2323232323'],'sms.test',['param1'=>'Name 1']);  

With Response:-, (*5)

// This command gives you the reply recieved from the server.
Sms::send(['87686655455','1212121212','2323232323'],'sms.test',['param1'=>'Name 1'])->response();  

Custom Gateway Let us suppose you want to use any other gateway. Find the API url with which sms can be sent. For Example : http://example.com/api/sms.php?uid=737262316a&pin=YOURPIN&sender=your_sender_id&route=0&mobile=8888888888&message=How are You&pushid=1, (*6)

Then you can setup the Config of Custom Gateway like this:, (*7)

        'custom' => [                           // Can be used for any gateway
            'url' => '',                        // Gateway Endpoint
            'params' => [                       // Parameters to be included in the request
                'send_to_name' => 'mobile',           // Name of the field of recipient number
                'msg_name' => 'message',               // Name of the field of Message Text
                'others' => [                   // Other Authentication params with their values
                    'uid' => '737262316a',
                    'pin' => 'YOURPIN',
                    'sender' => 'your_sender_id',
                    'route' => '0',
                    'pushid' => '1',
                ],
            ],
            'add_code' => true,                 // Append country code to the mobile numbers
        ],

The Versions

15/03 2018

dev-master

9999999-dev

Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5.Currently supported Gateways Clickatell , MVaayoo, Gupshup, SmsAchariya, SmsCountry , SmsLane , Nexmo, Mocker / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing.

  Sources   Download

MIT

The Requires

 

by Shiburaj

nexmo clickatell sms gateway custom sms mocker gupshup mvaayoo smsachariya smscountry smslane itexmo

05/12 2017

v2.0.2

2.0.2.0

Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5.Currently supported Gateways Clickatell , MVaayoo, Gupshup, SmsAchariya, SmsCountry , SmsLane , Nexmo, Mocker / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing.

  Sources   Download

MIT

The Requires

 

by Shiburaj

nexmo clickatell sms gateway custom sms mocker gupshup mvaayoo smsachariya smscountry smslane

26/11 2017

v2.0.1

2.0.1.0

Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5.Currently supported Gateways Clickatell , MVaayoo, Gupshup, SmsAchariya, SmsCountry , SmsLane , Nexmo / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing.

  Sources   Download

MIT

The Requires

 

by Shiburaj

nexmo clickatell sms gateway custom sms gupshup mvaayoo smsachariya smscountry smslane

19/11 2017

v2.0.0

2.0.0.0

Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5.Currently supported Gateways Clickatell , MVaayoo, Gupshup, SmsAchariya, SmsCountry / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing.

  Sources   Download

MIT

The Requires

 

by Shiburaj

clickatell sms gateway custom sms gupshup mvaayoo smsachariya smscountry smslane

19/11 2017

2.0.0

2.0.0.0

Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5.Currently supported Gateways Clickatell , MVaayoo, Gupshup, SmsAchariya, SmsCountry / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing.

  Sources   Download

MIT

The Requires

 

by Shiburaj

clickatell sms gateway custom sms gupshup mvaayoo smsachariya smscountry smslane

22/06 2016

v1.0.10

1.0.10.0

Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5.Currently supported Gateways Clickatell , MVaayoo, Gupshup, SmsAchariya, SmsCountry / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing.

  Sources   Download

MIT

The Requires

 

by Shiburaj

clickatell sms gateway custom sms gupshup mvaayoo smsachariya smscountry smslane

30/12 2015

v1.0.9

1.0.9.0

Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5.Currently supported Gateways Clickatell , MVaayoo, Gupshup, SmsAchariya, SmsCountry / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing.

  Sources   Download

MIT

The Requires

 

by Shiburaj

clickatell sms gateway custom sms gupshup mvaayoo smsachariya smscountry smslane

18/11 2015

v1.0.8

1.0.8.0

Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5.Currently supported Gateways Clickatell , MVaayoo, Gupshup, SmsAchariya, SmsCountry / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing.

  Sources   Download

MIT

The Requires

 

by Shiburaj

clickatell sms gateway custom sms gupshup mvaayoo smsachariya smscountry smslane

14/11 2015

v1.0.6

1.0.6.0

Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5.Currently supported Gateways Clickatell , MVaayoo, Gupshup, SmsAchariya, SmsCountry / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing.

  Sources   Download

MIT

The Requires

 

by Shiburaj

clickatell sms gateway custom sms gupshup mvaayoo smsachariya smscountry smslane

14/11 2015

v1.0.7

1.0.7.0

Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5.Currently supported Gateways Clickatell , MVaayoo, Gupshup, SmsAchariya, SmsCountry / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing.

  Sources   Download

MIT

The Requires

 

by Shiburaj

clickatell sms gateway custom sms gupshup mvaayoo smsachariya smscountry smslane

11/07 2015

v1.0.5

1.0.5.0

Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5.Currently supported Gateways Clickatell , MVaayoo, Gupshup, SmsAchariya, SmsCountry / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing.

  Sources   Download

MIT

The Requires

 

by Shiburaj

clickatell sms gateway custom sms gupshup mvaayoo smsachariya smscountry smslane

10/07 2015

v1.0.4

1.0.4.0

Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5.Currently supported Gateways MVaayoo, Gupshup, SmsAchariya, SmsCountry / Any REST based Gateways are supported by Custom Gateway. Log gateway can be used for testing.

  Sources   Download

MIT

The Requires

 

by Shiburaj

sms gateway custom sms gupshup mvaayoo smsachariya smscountry smslane

10/07 2015

v1.0.3

1.0.3.0

Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5.Currently supported Gateways MVaayoo, Gupshup, SmsAchariya, SmsCountry / Any REST based Gateways are supported by Custom Gateway. Log gateway can be used for testing.

  Sources   Download

MIT

The Requires

 

by Shiburaj

sms gateway gupshup mvaayoo sms achariya sms country

10/07 2015

v1.0.0

1.0.0.0

Simple SMS Driver Package for sending short text messages from your Laravel application.

  Sources   Download

MIT

The Requires

 

by Shiburaj

sms india gupshup mvaayoo

17/05 2015

v0.0.2

0.0.2.0

Simple SMS Api for sending short text messages from your application

  Sources   Download

The Requires

 

by Shiburaj

sms india gupshup mvaayoo

19/04 2015

v0.0.1

0.0.1.0

Simple SMS Api for sending short text messages from your application

  Sources   Download

The Requires

 

by Shiburaj

sms india gupshup mvaayoo