vemcogroup/laravel-smsapi
最新稳定版本:3.0
Composer 安装命令:
composer require vemcogroup/laravel-smsapi
包简介
Laravel implementation to easy sent sms via SMSAPI
README 文档
README
Description
This package allows you to quickly send SMS in Laravel via the SMSAPI service.
This is first version and only support to send SMS.
Further versions will support more of SMSAPI features.
Remember to register an account at SMSAPI before using this package.
Installation
You can install the package via composer:
composer require vemcogroup/laravel-smsapi
The package will automatically register its service provider.
To publish the config file to config/translation.php run:
php artisan vendor:publish --provider="Vemcogroup\SmsApi\SmsApiServiceProvider"
This is the default contents of the configuration:
return [ /* |-------------------------------------------------------------------------- | Token |-------------------------------------------------------------------------- | | Here you define your API TOKEN for smsapi | | More info: https://www.smsapi.com/docs/#authentication | */ 'token' => env('SMSAPI_TOKEN'), ];
Usage
You are now able to send sms with this code
use Vemcogroup\SmsApi\SmsApi; SmsApi::send($to, $from, $message);
统计信息
- 总下载量: 5.31k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-23