PHPackages                             loafer/laravel-gateway-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. loafer/laravel-gateway-api

ActiveLibrary[API Development](/categories/api)

loafer/laravel-gateway-api
==========================

Unofficial laravel package for GatewayApi

0.3.1(1y ago)195↓100%1UnlicensePHPPHP \*

Since Jul 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Loafer19/GatewayApiPackage)[ Packagist](https://packagist.org/packages/loafer/laravel-gateway-api)[ RSS](/packages/loafer-laravel-gateway-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

Laravel Package for Gateway API
===============================

[](#laravel-package-for-gateway-api)

Unofficial package for [Gateway Api](https://gatewayapi.com)
------------------------------------------------------------

[](#unofficial-package-for-gateway-api)

Installation
------------

[](#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

```

Usage
-----

[](#usage)

Import on top of the file

```
use Loafer\GatewayApi\Facades\GatewayApi;

```

Simpliest way to send SMS

```
GatewayApi::sendSimpleSms('smooth', [+380987654321]);

```

Complex way and available methods:

```
GatewayApi::setLabel(string)
    ->setSmsClass(string)
    ->setSenderName(string)
    ->setCallbackUrl(string)
    ->sendSimpleSms(string, array);

```

### Sender Name

[](#sender-name)

You can easily specify the sender's name:

In .env or in config/gatewayapi.php

```
GATEWAY_SENDER="Milky Way"

```

On the fly

```
GatewayApi::setSenderName('Elon Musk')
    ->sendSimpleSms('Doggy to moon', [+380987654321])

```

Up to 11 alphanumeric characters or 15 digits

By default, the sender's name is the name of the app

### Callback Url

[](#callback-url)

You can easily specify the callback url:

In .env or in config

```
GATEWAY_CALLBACK_URL="https://some-url.com"

```

On the fly

```
GatewayApi::setCallbackUrl('https://test-dev.com/callbacks/sms')
    ->sendSimpleSms('test', [+380987654321])

```

By default, the callback url is not specified

### SMS Label

[](#sms-label)

You can easily specify the sms label:

```
GatewayApi::setSmsLabel('registration')
    ->sendSimpleSms('Welcome...', [+380987654321])

```

By default, the label is not specified

### SMS Class

[](#sms-class)

You can easily specify the SMS Class:

Available values: `standart`, `premium`, `secret`

```
GatewayApi::setSmsClass('premium')
    ->sendSimpleSms('money is honey', [+380987654321])

```

You can use the constants as well:

```
GatewayApi::SMS_CLASS_STANDART
GatewayApi::SMS_CLASS_PREMIUM
GatewayApi::SMS_CLASS_SECRET

```

By default, the SMS Class is `standart`

Additional info
---------------

[](#additional-info)

[Official Docs](https://gatewayapi.com/docs/apis/rest)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance44

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~329 days

Total

5

Last Release

437d ago

PHP version history (3 changes)0.1.0PHP ^7.1|^8.0

0.3.0PHP ^7.4|^8.0|^8.1

0.3.1PHP \*

### Community

Maintainers

![](https://www.gravatar.com/avatar/faaf5f6453d2167a5fc12ea9fe3c5d9fe5450e9a99be69416fe8013c927c6c07?d=identicon)[Loafer19](/maintainers/Loafer19)

---

Top Contributors

[![Loafer19](https://avatars.githubusercontent.com/u/45109375?v=4)](https://github.com/Loafer19 "Loafer19 (10 commits)")

---

Tags

laravellaravel-packagesms

### Embed Badge

![Health badge](/badges/loafer-laravel-gateway-api/health.svg)

```
[![Health](https://phpackages.com/badges/loafer-laravel-gateway-api/health.svg)](https://phpackages.com/packages/loafer-laravel-gateway-api)
```

###  Alternatives

[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[spatie/laravel-route-discovery

Auto register routes using PHP attributes

23645.0k2](/packages/spatie-laravel-route-discovery)[esign/laravel-conversions-api

A laravel wrapper package around the Facebook Conversions API

69145.4k](/packages/esign-laravel-conversions-api)[didww/didww-api-3-php-sdk

PHP SDK for DIDWW API 3

1218.2k](/packages/didww-didww-api-3-php-sdk)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
