justinjunkes/laravel-gateway-api is a Laravel package for unofficial laravel package for gatewayapi.
It currently has 0 GitHub stars and 5 downloads on Packagist.
Install it with composer require justinjunkes/laravel-gateway-api.
Discover more Laravel packages by justinjunkes
or browse all Laravel packages to compare alternatives.
Last updated
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
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
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