shaab/sms
Composer 安装命令:
composer require shaab/sms
包简介
A package for make SMS sending using various gateway under a single package. It will reduce the complisity of the code.
README 文档
README
SMS Gateway Handler
This Laravel Package will helpto send SMS through various SMS Gateways simpler than ever.
Supported Gateways
Installation
-
Include the package in your project
composer require "shaab/sms" -
Add the service provider to your
config/app.phpproviders array:If you're installing on Laravel 5.5+ skip this step
- Add providers
shaab\sms\SmsServiceProvider::class, - Add Aliase
'SMS' => shaab\sms\Facades\sms::class,
- Add providers
-
Publish the Vendor Config files by running:
php artisan vendor:publish --provider="shaab\sms\SmsServiceProvider"- Config the SMS Gateway in
Config/sms.php.
- Config the SMS Gateway in
Usage
-
Add Facade to the controller:
use shaab\sms\Facades\sms; -
Call Send function
-
Minimal
Syntax: SMS::send($to,$message);
SMS::send(9567######,"Thank you!");to: Single mobile number or an array of numbersNote: Its basic function in the package.
-
Advanced
using Trait
--In development--
-
-
Check SMS Balance
-
MSG91
Syntax: SMS::msg91_balance(
Route);SMS::msg91_balance(4);Output: Return sms balance in given route.
-
TextLocal
SMS::textlocal_balance();Output: Return sms balance in given route.
-
统计信息
- 总下载量: 23
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-07-11