LaravelPackages.net
Acme Inc.
Toggle sidebar
justinjunkes/laravel-gateway-api

Unofficial laravel package for GatewayApi

5
0
About justinjunkes/laravel-gateway-api

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

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

Comments