PHPackages                             zgabievi/laravel-gosms - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. zgabievi/laravel-gosms

AbandonedArchivedProject[Utility &amp; Helpers](/categories/utility)

zgabievi/laravel-gosms
======================

GoSMS.GE Integration for Laravel

0.1.2(4y ago)1231[1 PRs](https://github.com/zgabievi/laravel-gosms/pulls)MITPHPPHP ^7.2|^8.0

Since Oct 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/zgabievi/laravel-gosms)[ Packagist](https://packagist.org/packages/zgabievi/laravel-gosms)[ RSS](/packages/zgabievi-laravel-gosms/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

GoSMS.GE Integration for Laravel
================================

[](#gosmsge-integration-for-laravel)

[![Packagist](https://camo.githubusercontent.com/b2bbf6ce2970a51b6e51eb0815eb59aff25001f1200080ecbf29f751eedca725/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a676162696576692f6c61726176656c2d676f736d732e737667)](https://packagist.org/packages/zgabievi/laravel-gosms)[![Packagist](https://camo.githubusercontent.com/01ee3b6b31fdab4e80807fb9adf58df92f5bd36547e8a5bf958371953af11af6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a676162696576692f6c61726176656c2d676f736d732e737667)](https://packagist.org/packages/zgabievi/laravel-gosms)[![license](https://camo.githubusercontent.com/540dfa8bb9c6b9579681320bc9c6d4fb8f80d0287fdbe802d27dad1e0ca89eab/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7a676162696576692f6c61726176656c2d676f736d732e737667)](https://packagist.org/packages/zgabievi/laravel-gosms)

[![laravel-gosms](https://raw.githubusercontent.com/zgabievi/laravel-gosms/main/assets/gosms.png)](https://github.com/zgabievi/laravel-gosms)

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
    - [Send Message](#send-message)
    - [Check Status](#check-status)
    - [Send OTP](#send-otp)
    - [Verify OTP](#verify-otp)
    - [Check Balance](#check-balance)
- [Notification](#notification)
- [Configuration](#configuration)
- [License](#license)

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

[](#installation)

To get started, you need to install package:

```
composer require zgabievi/laravel-gosms
```

If your laravel version is older than 5.5, then add this to your service providers in *config/app.php*:

```
'providers' => [
    ...
    Zorb\GoSMS\GoSMSServiceProvider::class,
    ...
];
```

You can publish config file using this command:

```
php artisan vendor:publish --provider="Zorb\GoSMS\GoSMSServiceProvider"
```

This command will copy config file in your config directory.

Usage
-----

[](#usage)

- [Send Message](#send-message)
- [Check Status](#check-status)
- [Send OTP](#send-otp)
- [Verify OTP](#verify-otp)
- [Check Balance](#check-balance)

### Send Message

[](#send-message)

```
use Zorb\GoSMS\Facades\GoSMS;

class MessageController extends Controller
{
    //
    public function __invoke()
    {
        // recipient who should get sms
        $mobile_number = '9955XXXXXXXX';

        // content of the message
        $message = 'Welcome, you are getting this message from integration';

        // brand name, if empty, config value will be used
        $brand = 'MY_BRAND';

        $result = GoSMS::send($mobile_number, $message, $brand);

        if ($result->success) {
            // $result->success
            // $result->messageId
            // $result->from
            // $result->to
            // $result->text
            // $result->sendAt
            // $result->balance
            // $result->encode
            // $result->segment
            // $result->smsCharacters
        } else {
            // message was not sent
        }
    }
}
```

### Check Status

[](#check-status)

```
use Zorb\GoSMS\Facades\GoSMS;

class MessageController extends Controller
{
    //
    public function __invoke()
    {
        // message id provided by send method
        $message_id = 0000;

        $result = GoSMS::status($message_id);

        if ($result->success) {
            // $result->success
            // $result->messageId
            // $result->from
            // $result->to
            // $result->text
            // $result->sendAt
            // $result->encode
            // $result->segment
            // $result->smsCharacters
            // $result->status

            if ($result->status === 'DELIVERED') {
                // message has been delivered
            }
        } else {
            // message status check failed
        }
    }
}
```

### Send OTP

[](#send-otp)

```
use Zorb\GoSMS\Facades\GoSMS;

class MessageController extends Controller
{
    //
    public function __invoke()
    {
        // recipient who should get sms
        $mobile_number = '9955XXXXXXXX';

        $result = GoSMS::sendOTP($mobile_number);

        if ($result->success) {
            // $result->success
            // $result->hash
            // $result->to
            // $result->sendAt
            // $result->encode
            // $result->segment
            // $result->smsCharacters
        } else {
            // message wasn't sent
        }
    }
}
```

### Verify OTP

[](#verify-otp)

```
use Zorb\GoSMS\Facades\GoSMS;

class MessageController extends Controller
{
    //
    public function __invoke()
    {
        // recipient who should get sms
        $mobile_number = '9955XXXXXXXX';

        // hash was received from otp send method
        $hash = 'asd987asd76fds6f5sd7fsdf';

        // otp code from user input
        $code = '1234';

        $result = GoSMS::verifyOTP($mobile_number, $hash, $code);

        if ($result->success) {
            // $result->success
            // $result->verify

            if ($result->verify) {
                // otp has been verified
            }
        } else {
            // otp couldn't be checked
        }
    }
}
```

### Check Balance

[](#check-balance)

```
use Zorb\GoSMS\Facades\GoSMS;

class MessageController extends Controller
{
    //
    public function __invoke()
    {
        $result = GoSMS::balance();

        if ($result->success) {
            // $result->success
            // $result->balance
        } else {
            // balance couldn't be checked
        }
    }
}
```

Notification
------------

[](#notification)

You can use this package as notification channel.

```
use Illuminate\Notifications\Notification;
use Zorb\GoSMS\Notifications\SMSMessage;
use Zorb\GoSMS\Channels\GoSMSChannel;

class WelcomeNotification extends Notification
{
    //
    public function via($notifiable)
    {
        return [GoSMSChannel::class];
    }

    //
    public function toGoSMS($notifiable): SMSMessage
    {
        return (new SMSMessage())
            ->content('Your message goes here.')
            ->recipient($notifiable->phone);
    }
}
```

Additional Information
----------------------

[](#additional-information)

### Errors

[](#errors)

Errors has its own enum `Zorb\GoSMS\Enums\Errors`

KeyValueINVALID\_API\_KEY100INVALID\_BRAND\_NAME101NOT\_ENOUGH\_BALANCE102MESSAGE\_TOO\_LONG103Configuration
-------------

[](#configuration)

You can configure environment file with following variables:

KeyTypeDefaultMeaningGOSMS\_DEBUGboolfalseThis value decides to log or not to log requests.GOSMS\_API\_KEYstringThis is the api key, which should be generated on gosms.ge.GOSMS\_API\_URLstringThis is the url provided gosms.ge api docs.GOSMS\_BRANDstringThis is the brand name which you should have registered on gosms.ge.License
-------

[](#license)

[zgabievi/laravel-gosms](https://github.com/zgabievi/laravel-gosms) is licensed under a [MIT License](https://github.com/zgabievi/laravel-gosms/blob/master/LICENSE).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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 ~235 days

Total

3

Last Release

1558d ago

PHP version history (2 changes)0.1.0PHP ^7.2

0.1.2PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/97b2001280ff47bbc67e542074e290919291715cd6c9f694e6787b50d67c60ad?d=identicon)[zgabievi](/maintainers/zgabievi)

---

Top Contributors

[![zgabievi](https://avatars.githubusercontent.com/u/1515299?v=4)](https://github.com/zgabievi "zgabievi (5 commits)")[![gabiezur](https://avatars.githubusercontent.com/u/131362365?v=4)](https://github.com/gabiezur "gabiezur (3 commits)")

### Embed Badge

![Health badge](/badges/zgabievi-laravel-gosms/health.svg)

```
[![Health](https://phpackages.com/badges/zgabievi-laravel-gosms/health.svg)](https://phpackages.com/packages/zgabievi-laravel-gosms)
```

###  Alternatives

[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.1M30](/packages/prologue-alerts)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[bakame/laravel-domain-parser

Laravel package to integrate PHP Domain parser.

26534.8k4](/packages/bakame-laravel-domain-parser)

PHPackages © 2026

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