justinjunkes/laravel-gateway-api
Composer 安装命令:
composer require justinjunkes/laravel-gateway-api
包简介
Unofficial laravel package for GatewayApi
README 文档
README
Unofficial package for Gateway Api
Installation
composer require loafer/laravel-gateway-api
Publish config file
php artisan vendor:publish --provider=Loafer\GatewayApi\GatewayApiServiceProvider
Specify api key and secret in .env
GATEWAY_API_KEY=key
GATEWAY_API_SECRET=secret
Sender Name
You can easily specify the sender's name:
In .env
GATEWAY_SENDER="Milky Way"
On the fly
GatewayApi::setSenderName('Elon Musk')
->sendSimpleSMS('test message', [+380987654321])
By default, the sender's name is the name of the app
Up to 11 alphanumeric characters or 15 digits
Callback Url
You can easily specify the callback url:
On the fly
GatewayApi::setCallbackUrl('https://test-dev.com/callbacks/sms')
->sendSimpleSMS('test message', [+380987654321])
By default, the callback url is null
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-02