PHPackages                             zsardarov/laravel-msg - 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. zsardarov/laravel-msg

ActiveLibrary[API Development](/categories/api)

zsardarov/laravel-msg
=====================

MSG.ge integration for Laravel

v1.0.0(5y ago)06MITPHPPHP &gt;=7.1

Since Mar 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/zsardarov/laravel-msg)[ Packagist](https://packagist.org/packages/zsardarov/laravel-msg)[ RSS](/packages/zsardarov-laravel-msg/feed)WikiDiscussions master Synced today

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

MSG.ge integration for Laravel
==============================

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

The package for sending SMS messages using [MSG.ge](https://smsservice.ge/) API.

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

[](#installation)

```
composer require zsardarov/laravel-msg
```

You can publish config using:

```
php artisan vendor:publish --provider="Zsardarov\Msg\MsgServiceProvider"
```

### Update the `.env` file

[](#update-the-env-file)

`MSG_ALTERNATIVE_PASSWORD` is optional.

```
MSG_SERVICE_ID=1
MSG_CLIENT_ID=1
MSG_PASSWORD=password
MSG_USERNAME=user
MSG_ALTERNATIVE_PASSWORD=
```

Usage
-----

[](#usage)

```
use Zsardarov\Msg\MsgService;
use Zsardarov\Msg\Enums\GatewayStatus;
use Zsardarov\Msg\Enums\DeliveryStatus;

class SampleController extends Controller
{
    public function sms(MsgService $sender)
    {
        $result = $sender->send('9955XXXXXXXX', 'Text');

        if ($result->getStatusCode() === GatewayStatus::ACCEPTED) {
            // now we can check status
            $status = $sender->status($result->getMessageId());

            if ($status === DeliveryStatus::PENDING || $status === DeliveryStatus::SENT) {
                // message has been sent
            }
        }
    }
}
```

Notifications
-------------

[](#notifications)

To use it with Laravel notifications, you firstly must add `toMsg()` method in `User` model:

```
class User extends Authenticatable
{
    use Notifiable;

    public function toMsg()
    {
        return $this->mobile;
    }
}
```

Create notification:

```
php artisan make:notification SmsNotification
```

```
use Illuminate\Notifications\Notification;
use Zsardarov\Msg\Channels\MsgChannel;

class SmsNotification extends Notification
{
    private $message;

    public function __construct(string $message)
    {
        $this->message = $message;
    }

    public function via($notifiable)
    {
        return [MsgChannel::class];
    }

    public function toSms()
    {
        return $this->message;
    }
}
```

Then send notification to user:

```
$user->notify(new SmsNotification('Sample'));
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Unknown

Total

1

Last Release

1891d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a7f654236a28d7868a2c1fcc417462a3e237daf21160c88a6e1e41e7e278a95?d=identicon)[zsardarov](/maintainers/zsardarov)

---

Top Contributors

[![zsardarov](https://avatars.githubusercontent.com/u/35600518?v=4)](https://github.com/zsardarov "zsardarov (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zsardarov-laravel-msg/health.svg)

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

###  Alternatives

[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[dcblogdev/laravel-microsoft-graph

A Laravel Microsoft Graph API (Office365) package

168285.5k1](/packages/dcblogdev-laravel-microsoft-graph)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)[grantholle/powerschool-api

A Laravel package to make interacting with PowerSchool less painful.

1715.6k1](/packages/grantholle-powerschool-api)

PHPackages © 2026

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