PHPackages                             dash8x/dhiraagu-sms-notification - 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. dash8x/dhiraagu-sms-notification

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

dash8x/dhiraagu-sms-notification
================================

Laravel notification channel for Dhiraagu Bulk SMS Gateway

v0.7.0(2mo ago)11.8k3[2 PRs](https://github.com/dash8x/dhiraagu-sms-notification/pulls)MITPHPPHP &gt;=7.0CI failing

Since May 19Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/dash8x/dhiraagu-sms-notification)[ Packagist](https://packagist.org/packages/dash8x/dhiraagu-sms-notification)[ Docs](https://github.com/dash8x/dhiraagu-sms-notification)[ RSS](/packages/dash8x-dhiraagu-sms-notification/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (10)Versions (12)Used By (0)

Dhiraagu Bulk SMS Notification Channel for Laravel 5.3+
=======================================================

[](#dhiraagu-bulk-sms-notification-channel-for-laravel-53)

[![Latest Version on Packagist](https://camo.githubusercontent.com/117c0749248c91a1137827610324fc618b1375709493c0aed0bdf7ab807686a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6461736838782f64686972616167752d736d732d6e6f74696669636174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dash8x/dhiraagu-sms-notification)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/8b2abe211e135dfecab38c8838c4e9bafe38b60b3a15c42d732bef0c574a01b6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6461736838782f64686972616167752d736d732d6e6f74696669636174696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/dash8x/dhiraagu-sms-notification)[![StyleCI](https://camo.githubusercontent.com/768a6041e6d9e1d5da89e64c3e785631240f2736770dfa68d509c42a321135da/68747470733a2f2f7374796c6563692e696f2f7265706f732f3a7374796c655f63695f69642f736869656c64)](https://styleci.io/repos/:style_ci_id)[![SensioLabsInsight](https://camo.githubusercontent.com/7a395d7551140767a9f38f838e0e96b367bae56234402374185cd65ee8d795a1/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f3a73656e73696f5f6c6162735f69642e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/:sensio_labs_id)[![Quality Score](https://camo.githubusercontent.com/1b23fd583a0c0a6be6bdc406d41378103b37ace2c57330d9c17a1e053448124f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6461736838782f64686972616167752d736d732d6e6f74696669636174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/dash8x/dhiraagu-sms-notification)[![Code Coverage](https://camo.githubusercontent.com/172a2a7a371f1d13287767724b3eaf54e218e142ad8502082670e186f24a681f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6461736838782f64686972616167752d736d732d6e6f74696669636174696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/dash8x/dhiraagu-sms-notification/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/63f0694ea78f7d9338dff510d2683293d495e97a85a517fd9014e59a217aa897/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6461736838782f64686972616167752d736d732d6e6f74696669636174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dash8x/dhiraagu-sms-notification)

This package makes it easy to send notifications using [Dhiraagu Bulk SMS Gateway](https://github.com/dash8x/dhiraagu-sms) with Laravel 5.3.

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up the Dhiraagu Bulk Sms Gateway credentials](#setting-up-the-dhiraagu-bulk-sms-gateway-credentials)
- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
    - [Checking delivery status](#checking-delivery-status)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)
- [Disclaimer](#disclaimer)

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

[](#installation)

You can install the package via composer:

```
composer require dash8x/dhiraagu-sms-notification
```

Add the service provider (only required on Laravel 5.4 or lower):

```
// config/app.php
'providers' => [
    ...
    Dash8x\DhiraaguSmsNotification\DhiraaguSmsNotificationServiceProvider::class,
],
```

Optionally add the facade.

```
// config/app.php
'aliases' => [
    ...
    'DhiraaguSms' => Dash8x\DhiraaguSmsNotification\Facades\DhiraaguSms::class,
],
```

### Setting up the Dhiraagu Bulk Sms Gateway credentials

[](#setting-up-the-dhiraagu-bulk-sms-gateway-credentials)

Add your Dhiraagu Bulk SMS Gateway Account Username, Password, and Url (optional) to your `config/services.php`:

```
// config/services.php
...
'dhiraagu' => [
    'username' => env('DHIRAAGU_SMS_USERNAME'), // Bulk SMS gateway username, usually same as your sender name
    'password' => env('DHIRAAGU_SMS_PASSWORD'), // Bulk SMS gateway password
    'url' => env('DHIRAAGU_SMS_URL'), // optional, use only if you need to override the default,
                                      // defaults to https://bulkmessage.dhiraagu.com.mv/partners/xmlMessage.jsp
],
...
```

Usage
-----

[](#usage)

Now you can use the channel in your `via()` method inside the notification:

```
use Dash8x\DhiraaguSmsNotification\DhiraaguSmsNotificationChannel;
use Illuminate\Notifications\Notification;

class AccountApproved extends Notification
{
    public function via($notifiable)
    {
        return [DhiraaguSmsNotificationChannel::class];
    }

    public function toDhiraagu($notifiable)
    {
        return "Your {$notifiable->service} account was approved!";
    }
}
```

In order to let your Notification know which phone are you sending to, the channel will look for the phone\_number attribute of the Notifiable model. If you want to override this behaviour, add the routeNotificationForDhiraagu method to your Notifiable model.

```
public function routeNotificationForDhiraagu()
{
    return '+9607777777';
}
```

It also supports sending to multiple phone numbers.

```
public function routeNotificationForDhiraagu()
{
    return ['+9607777777', '+9609999999'];
}
```

### Available Message methods

[](#available-message-methods)

#### DhiraaguSmsNotificationMessage

[](#dhiraagusmsnotificationmessage)

- `setNumbers('')`: Accepts phone numbers to use as the notification recipients.
- `setMessage('')`: Accepts a string value for the notification body.
- `getNumbers()`: Returns the recipients.
- `getMessage()`: Returns the string value of the notification body.

### Checking delivery status

[](#checking-delivery-status)

To proccess any laravel notification channel response check [Laravel Notification Events](https://laravel.com/docs/5.6/notifications#notification-events)This channel returns a `DhiraaguSmsMessage` response object.

Check [dash8x/dhiraagu-sms](https://github.com/dash8x/dhiraagu-sms#check-sms-delivery-status) for Delivery Status Checking Documentation.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Arushad Ahmed](https://github.com/dash8x)

License
-------

[](#license)

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

Disclaimer
----------

[](#disclaimer)

This package is not in any way officially affiliated with Dhiraagu. The "Dhiraagu" name has been used under fair use.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance86

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

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 ~355 days

Recently: every ~344 days

Total

9

Last Release

72d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6671720?v=4)[Arushad Ahmed](/maintainers/dash8x)[@dash8x](https://github.com/dash8x)

---

Top Contributors

[![dash8x](https://avatars.githubusercontent.com/u/6671720?v=4)](https://github.com/dash8x "dash8x (14 commits)")

---

Tags

laravelnotificationsmsmessagingtextingmaldivesdhivehidhismsdhiraagu

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dash8x-dhiraagu-sms-notification/health.svg)

```
[![Health](https://phpackages.com/badges/dash8x-dhiraagu-sms-notification/health.svg)](https://phpackages.com/packages/dash8x-dhiraagu-sms-notification)
```

###  Alternatives

[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)[ghanem/laravel-smsmisr

Send SMS and SMS Notification via SMS Misr for Laravel

194.8k](/packages/ghanem-laravel-smsmisr)

PHPackages © 2026

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