PHPackages                             mdabagh/smschannels - 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. mdabagh/smschannels

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

mdabagh/smschannels
===================

sms channels

v1.0.4(3y ago)017PHP

Since May 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mdabagh/sms-channels)[ Packagist](https://packagist.org/packages/mdabagh/smschannels)[ RSS](/packages/mdabagh-smschannels/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

SMS Channels Package
====================

[](#sms-channels-package)

The SMS Channels package provides an easy way to send SMS messages using multiple channels such as Kavenegar, Sms.ir, and others. With this package, you can easily send your SMS messages through different channels.

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

[](#installation)

You can install the package via Composer using the following command:

```
composer require mdabagh/smschannels
```

Configuration
-------------

[](#configuration)

In your `.env` file, you can define the active driver and the settings and keys for each driver. The `MSM_DRIVE_ACTIVE` variable specifies the default driver to use.

```
MSM_DRIVE_ACTIVE=mrapi

# mrapi driver
MRAPI_AUTHENTICATION=
MRAPI_TOKEN=
MRAPI_PATTERNID=

# KAVENEGAR driver
KAVENEGAR_API_KEY=
KAVENEGAR_TEMPLATE=

```

Usage
-----

[](#usage)

To use the package in your controller, you can use the `Sms` facade. First, you need to add the following `use` statement to your controller:

```
use Mdabagh\Smschannels\Facades\Sms;
```

After that, you can use the `sendVerifyCode()` and `checkVerifyCode()` methods provided by the `Sms` facade to send and verify SMS verification codes. For example:

```
$phone = '09123456789';
$code = Sms::sendVerifyCode($phone);
// Save $code to verify the code later

// When verifying the code
$key = '1234'; // The code entered by the user
$result = Sms::checkVerifyCode($phone, $key);
if ($result->status) {
    $body = $result->body;
    // The verification code is correct
} else {
    // The verification code is incorrect
}
```

License
-------

[](#license)

The SMS Channels package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.8% 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 ~1 days

Total

5

Last Release

1100d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/932753eed947c75860c93dd8224e54b6d7c9a69c54b852a29d6c7cd4966485fd?d=identicon)[mdabbagh-ir](/maintainers/mdabbagh-ir)

---

Top Contributors

[![mdabagh](https://avatars.githubusercontent.com/u/45653004?v=4)](https://github.com/mdabagh "mdabagh (23 commits)")[![daalvand](https://avatars.githubusercontent.com/u/23280949?v=4)](https://github.com/daalvand "daalvand (1 commits)")

---

Tags

design-pattern-strategysms

### Embed Badge

![Health badge](/badges/mdabagh-smschannels/health.svg)

```
[![Health](https://phpackages.com/badges/mdabagh-smschannels/health.svg)](https://phpackages.com/packages/mdabagh-smschannels)
```

PHPackages © 2026

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