keal / laravel-sms
easy to send sms
Installs: 78
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:php
Requires
- php: >=5.6.4
- illuminate/support: >=5.2
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.0
README
支持云通讯和聚合数据
安装
支持Laravel > 5.1.*,php > 5.6.4
composer require keal/laravel-sms
##注册ServiceProvider
在app.php
中加入
Caikeal\LaravelSms\sms\SmsServiceProvider::class
##添加Facade
在app.php
中加入
'Sms' => Caikeal\LaravelSms\sms\Facades\Sms::class
##配置config
php artisan vendor:publish
##使用
- \Sms::to("这里填写手机号")->template('YunTongXun', 具体的模版id)->data(["模版变量1内容", "模版变量2内容", ...])->send();
- \Sms::to("这里填写手机号")->template('Juhe', 具体的模版id)->data(['模板变量'=>对应的值])->send();