loafer/laravel-gateway-api

Unofficial laravel package for GatewayApi

Downloads

22

Stars

0

Version

0.2.0

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

Official Docs

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

Loafer19

Author

Loafer19