hizbul/onnorokom-sms
Composer 安装命令:
composer require hizbul/onnorokom-sms
包简介
Sending bulk sms using onnorokomsms service
README 文档
README
Installation
The OnnoRokom SMS Service Provider can be installed via Composer by requiring the
hizbul/onnorokom-sms package and setting the minimum-stability to dev (required for Laravel 5.*) in your
project's composer.json.
{
"require": {
"hizbul/onnorokom-sms": "dev-master",
},
}
or
Require this package with composer:
composer require hizbul/onnorokom-sms
Update your packages with composer update or install with composer install.
Usage
To use the OnnoRokom SMS Service Provider, you must register the provider when bootstrapping your Laravel application. There are essentially two ways to do this.
Find the providers key in config/app.php and register the OnnoRokom SMS Service Provider.
'providers' => [ // ... Hizbul\OnnorokomSms\OnnorokomSmsServiceProvider::class, ]
Find the aliases key in config/app.php.
'aliases' => [ // ... 'OnnoRokomSMS' => Hizbul\OnnorokomSms\Facades\OnnoRokomSMS::class, ]
Configuration
To use your own settings, publish config.
$ php artisan vendor:publish --provider="Hizbul\OnnorokomSms\OnnorokomSmsServiceProvider"
Sending a text message One to One:
onnorokom_sms(['message' => 'some text msg', 'mobile_number' => '01918....']);
Sending text message One to Many (Bulk):
onnorokom_sms(['message' => 'some text msg', 'mobile_number' => ['01918....', '0171....']]);
Based on OnnoRokom SMS Service
^_^
统计信息
- 总下载量: 486
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 23
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-12-20