PHPackages                             sanakey/laravel-mnotify - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. sanakey/laravel-mnotify

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

sanakey/laravel-mnotify
=======================

Send Laravel Notifications via the Mnotify SMS API

26PHP

Since Dec 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/aasanakey/laravel-mnotify)[ Packagist](https://packagist.org/packages/sanakey/laravel-mnotify)[ RSS](/packages/sanakey-laravel-mnotify/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Mnotify Sms Api
=======================

[](#laravel-mnotify-sms-api)

[![GitHub issues](https://camo.githubusercontent.com/54fb181286a2c50d3bc7d4005a1c5317c407c56b2af0a9e69d777589a20980bc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f53616e616b6579417567757374696e654179696b752f6c61726176656c2d6d6e6f74696679)](https://github.com/SanakeyAugustineAyiku/laravel-mnotify/issues)[![GitHub stars](https://camo.githubusercontent.com/26d0fde882a025afb1c5aef9c42ee45066542ead0464c7a8f6848f9b7be937ac/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f53616e616b6579417567757374696e654179696b752f6c61726176656c2d6d6e6f74696679)](https://github.com/SanakeyAugustineAyiku/laravel-mnotify/stargazers)[![GitHub license](https://camo.githubusercontent.com/e665d7293a4ebc3cc3cc005842bbd23ca89cbb3b743d292926f4f755cd9ee7a8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f53616e616b6579417567757374696e654179696b752f6c61726176656c2d6d6e6f74696679)](https://github.com/SanakeyAugustineAyiku/laravel-mnotify/blob/main/LICENSE)[![Build Status](https://camo.githubusercontent.com/7f3c36e17f27af4069e2c68c7b80ba46ab02982f1e5c40c5ce5373d9c71d3e28/68747470733a2f2f7472617669732d63692e636f6d2f53616e616b6579417567757374696e654179696b752f6c61726176656c2d6d6e6f746966792e7376673f6272616e63683d6d61696e)](https://travis-ci.com/SanakeyAugustineAyiku/laravel-mnotify)

Send Laravel Notifications via the Mnotify SMS API
--------------------------------------------------

[](#send-laravel-notifications-via-the-mnotify-sms-api)

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

[](#installation)

You can install the package via composer:

```
composer require sanakey/laravel-mnotify
```

First you must install the service provider (skip for Laravel&gt;=5.5):

```
// config/app.php
'providers' => [
    ...
    Sanakey\\Mnotify\\MnotifyServiceProvider::class,
],
```

In order to let your Notification know which phone number you are targeting, add the routeNotificationForMnotify method to your Notifiable model.

```
class User extends Model
{
     public function routeNotificationForMnotify()
    {
        return $this->contact;  // returns a contact number eg 0301045697
    }
}
```

You can publish the config file with:

```
php artisan vendor:publish --tag=mnotify-config
```

or

```
php artisan vendor:publish --provider="Sanakey\Mnotify\MnotifyServiceProvider" --tag="mnotify-config"
```

Add your mnotify api key.

Set your mnotify api keys in your .env file.

```
MNOTIFY_SMS_API_KEY=your mnotify SMS API key

MNOTIFY_APIV2_KEY=your mnotify API V2 key

```

Or

Add your Mnotify SMS API Key and API V2 Key to your `config/mnotify.php`:

```
// config/services.php
...
'sms_api_key' => env('MNOTIFY_SMS_API_KEY'),
'api_v2_key' => env('MNOTIFY_APIV2_KEY'),
...
```

For your SMS API Key visit [SMS API](https://apps.mnotify.net/api/api)

For API V2 Key visit [API v2.0](https://apps.mnotify.net/api/api_list)

Usage
-----

[](#usage)

Now you can use the channel in your `via()` method inside the notification as well as send an sms notification using the mnotify api:

```
use Illuminate\Notifications\Notification;
use Sanakey\Mnotify\Message;

class SMSNotification extends Notification
{
    public function via($notifiable)
    {
        return ['mnotify'];
    }

    public function toMnotify($notifiable)
    {
        return (new Message)
            ->sender_id('Sender ID')
            ->title('Approved')
            ->message('Your account was approved!');
    }
}
```

### Check balance

[](#check-balance)

To check your sms balance use the `checkBalance()` method on SMSAPI object:

```
use Sanakey\Mnotify\SMSAPI;

$api = new SMSAPI();
$balance =$api->checkBalance();
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/19ac717b0fe478fe37799fdc0119d9d9c03c56bcdb5b3bd7975508b2785d27d8?d=identicon)[aasanakey](/maintainers/aasanakey)

---

Top Contributors

[![aasanakey](https://avatars.githubusercontent.com/u/43689197?v=4)](https://github.com/aasanakey "aasanakey (13 commits)")

### Embed Badge

![Health badge](/badges/sanakey-laravel-mnotify/health.svg)

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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