2017 © Pedro Peláez
 

library laravel-send-sms

A test package that sends sms

image

laravel-send-sms/laravel-send-sms

A test package that sends sms

  • Friday, September 15, 2017
  • by muxinchao
  • Repository
  • 1 Watchers
  • 0 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 19 % Grown

The README.md

laravel send sms

Based on laravel5 development of lightweight mobile phone SMS package, features: simple and flexible, (*1)

> support:ChuangLan253 SMS,RongLian SMS

> Suitable for the scene:Phone verification

installation

Via Composer, (*2)

``` php $ composer require laravel-send-sms/laravel-send-sms=dev-master, (*3)


composer.json ``` php "laravel-send-sms/laravel-send-sms":"dev-master"

Configuration

``` php //service provider 'providers' => [ //... Laravel\Send\Sms\SmsServiceProvider::class, ], (*4)

//Alias 'aliases' => [ //... 'Sms' => Laravel\Send\Sms\Agents\SmsManager::class, ], (*5)

//Create a configuration file $ php artisan vendor::pulish, (*6)


## Use examples ``` php //... use Sms; //ChuangLan $obj = new Sms(); $obj->manager('ChuangLan')->sendSms('手机', '短信内容'); //RongLan $obj = new Sms(); $obj->manager('RongLan')->sendSms('手机',['8765', '1'], 1);//Refer to the documentation for RongLian details

Configuration file description

``` php //Generate the sms.php file return [, (*7)

//ChuangLan253 SMS plateform
'ChuangLan' => [
    'account'  => '095389',                               //your account
    'password' => '7LOKagPs557e',                         //your password
    'url'      => 'http://sms.253.com/msg/send',
],
//RongLian SMS platform
'RongLian' => [
    'account_sid'   => '8a216da85e6fff2b015e74aba45d0235',//You can see the developer's primary account ACCOUNT SID on the front page of the console
    'account_token' => 'c7ee385c4a804715a45b815271059e94',//You can see the developer 's main account on the front page of the console
    'app_id'        => '8a216da85e6fff2b015e74aba5ba023c',//Use the APPID of the app already created in the Admin console
    'server_ip'     => 'sandboxapp.cloopen.com',          //Test environment (production environment request address: app.cloopen.com)
    'server_port'   => '8883',                            //Request port
    'soft_version'  => '2013-12-26',                      //REST API version number remains unchanged
]

]; ```, (*8)

Security

If you discover any security related issues, please email 1046072048@qq.com instead of using the issue tracker., (*9)

License

The MIT License (MIT)., (*10)

The Versions

15/09 2017

dev-master

9999999-dev

A test package that sends sms

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by xinchao