laravel-gateway-api maintained by justinjunkes
Description
Unofficial laravel package for GatewayApi
Authors
Last update
2022/09/02 18:46
(dev-master)
License
Downloads
5
Laravel Package for Gateway API
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