2017 © Pedro Peláez
 

library phpsms-l4

phpSms for laravel 4

image

hardywen/phpsms-l4

phpSms for laravel 4

  • Tuesday, March 29, 2016
  • by HardyWen
  • Repository
  • 1 Watchers
  • 1 Stars
  • 371 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

toplan/phpsms for laravel 4

laravel 5 版本请使用 https://github.com/toplan/laravel-sms, (*1)

install

composer require 'hardywen/phpsms-l4' '~1.0', (*2)

config

config/app.php 两个数组加入:, (*3)

providers = [
  'Hardywen\PhpSms\PhpSmsServiceProvider'
]

aliases = [
    'SMS'=>'Hardywen\PhpSms\Facade\Sms',
]

php artisan config:publish hardywen/phpsms-l4, (*4)

exapmle

$result = SMS::make()->to('138xxxxxxxx')->template([
        'Ucpaas'     => '1233',
        'YunTongXun' => '1211'
    ])->data(['123123', 10])->content('something')->send();

if($result['success'] == true){
   //发送成功,做你想做的事
}else{
  //发送失败
}

更多使用方式查看原组件, (*5)

https://github.com/toplan/phpsms, (*6)

The Versions

29/03 2016

dev-master

9999999-dev

phpSms for laravel 4

  Sources   Download

MIT

The Requires

 

by Avatar HardyWen

11/01 2016

1.0

1.0.0.0

phpSms for laravel 4

  Sources   Download

MIT

The Requires

 

by Avatar HardyWen