btm/jawalysms
Composer 安装命令:
composer require btm/jawalysms
包简介
JawalySms SMS Sender Wrapper Laravel
README 文档
README
Introduction
...
Installation
First, you'll need to require the package with Composer:
composer require btm/jawalysms
Aftwards, run composer update from your command line.
Then, update config/app.php by adding an entry for the service provider.
'providers' => [ // ... BTM\JawalySms\JawalySmsServiceProvider::class ];
Then, register class alias by adding an entry in aliases section
'aliases' => [ // ... 'jawalysms' => BTM\JawalySms\JawalySmsFacade::class ];
Finally, from the command line again, run
php artisan vendor:publish --tag=config
to publish the default configuration file.
This will publish a configuration file named jawalysms.php which includes your OneSignal authorization keys.
Note: If the previous command does not publish the config file successfully, please check the steps involving providers and aliases in the
config/app.phpfile.
Configuration
You need to fill in jawalysms.php file that is found in your applications config directory.
Usage
Sending a SMS To Specific Number
You can easily send a SMS to Specific Number with the command
\jawalysms::sendSMS("Some Message","PhoneNumber");
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-05-14