hoda/sms-driver
Composer 安装命令:
composer require hoda/sms-driver
包简介
SMS package with multiple drivers
README 文档
README
This package allows you to switch between drivers or use default driver from your config file.
Installation
This package can be used in Laravel 5.3 or higher.
You can install the package via composer:
composer require hoda/sms
The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php file:
'providers' => [ // ... Hoda\SMS\SmsServiceProvider::class, ]; 'aliases' => [ 'SMS' => Hoda\SMS\SmsFacade::class, ];
Add config file
php artisan vendor:publish
Add your driver credential to env file
NEXMO_KEY= NEXMO_SECRET=
usage
SMS::channel('nexmo')->to('phone_number')->message('This your message')->send();
Test
vendor/bin/phpunit tests
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-01-25