PHPackages                             mrhmh/sms-rahyab - 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. mrhmh/sms-rahyab

ActiveLibrary

mrhmh/sms-rahyab
================

v0.2(5y ago)357PHP

Since Mar 31Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mrhmh/sms-rahyab)[ Packagist](https://packagist.org/packages/mrhmh/sms-rahyab)[ RSS](/packages/mrhmh-sms-rahyab/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

RahyabSMS notifications channel for Laravel
===========================================

[](#rahyabsms-notifications-channel-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6249c2bd94de0bbfc8ce843f411f722847fadc484212562030e828f5dd5ad76d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d72686d682f736d732d7261687961622e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mrhmh/sms-rahyab)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

This package makes it easy to send notifications using [sms.rahyab.ir](http://sms.rahyab.ir/).

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

[](#installation)

Install this package with Composer:

```
composer require mrhmh/sms-rahyab
```

### Setting up the Rahyab service

[](#setting-up-the-rahyab-service)

Add your Rahyab credential to `config/services.php`:

```
// config/services.php
...
'sms_rahyab' => [
        'company'  => env('SMS_RAHYAB_COMPANY'),
        'host'     => env('SMS_RAHYAB_HOST'),
        'port'     => env('SMS_RAHYAB_PORT'),
        'username' => env('SMS_RAHYAB_USERNAME'),
        'password' => env('SMS_RAHYAB_PASSWORD'),
        'sender'   => env('SMS_RAHYAB_SENDER'),
        'token'    => env('SMS_RAHYAB_TOKEN'),
    ],
...
```

Usage
-----

[](#usage)

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

```
use Illuminate\Notifications\Notification;
use MrHMH\SmsRahyab\SmsRahyabChannel;
use MrHMH\SmsRahyab\SmsRahyabMessage;

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

    public function toSmsRahyab($notifiable)
    {
        return SmsRahyabMessage::create("Task #{$notifiable->id} is complete!");
    }
}
```

In your notifiable model, make sure to include a `routeNotificationForSmsrahyab()` method, which return a phone number.

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

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Total

2

Last Release

1844d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34793567?v=4)[Hossein MohammadHosseini](/maintainers/mrhmh)[@mrhmh](https://github.com/mrhmh)

---

Top Contributors

[![mrhmh](https://avatars.githubusercontent.com/u/34793567?v=4)](https://github.com/mrhmh "mrhmh (3 commits)")

### Embed Badge

![Health badge](/badges/mrhmh-sms-rahyab/health.svg)

```
[![Health](https://phpackages.com/badges/mrhmh-sms-rahyab/health.svg)](https://phpackages.com/packages/mrhmh-sms-rahyab)
```

PHPackages © 2026

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