PHPackages                             aminkt/sms-driver-rest-api - 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. aminkt/sms-driver-rest-api

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

aminkt/sms-driver-rest-api
==========================

Rest Api Sms driver created to work with more than one sms service provider with same interface.

v1.1.0(1y ago)21382GPL-3.0-onlyPHPPHP &gt;=5.4.0

Since Aug 16Pushed 1y ago2 watchersCompare

[ Source](https://github.com/aminkt/sms-driver-rest-api)[ Packagist](https://packagist.org/packages/aminkt/sms-driver-rest-api)[ RSS](/packages/aminkt-sms-driver-rest-api/feed)WikiDiscussions master Synced today

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

Rest Api Sms driver
===================

[](#rest-api-sms-driver)

Rest Api Sms driver created to work with more than one sms service provider with same interface.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist aminkt/sms-driver-rest-api "*"

```

or add

```
"aminkt/sms-driver-rest-api": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
$sms = new \aminkt\sms\Sms();
// Ingnore below line if you don't want change default driver.
$sms->setDrviver('\your\driver\Class');
$sms->setLoginData([`LOGIN_DATA`]);
$sms->sendSms([
    'message'=>'Your test message.',
    'numbers'=>['09120813856', '+989121234567']
]);
```

> `LOGIN_DATA` depends on what driver is used to send sms, there is a list of supported drivers is blew User your own driver

---

If you want you can simply write your own driver and attach it to this library.

And if you want you can publish it in this library by your own name.

If you want create your own driver please flow below steps:

1. Create your class and use psr-7 namespcae.
2. Extend your class from `aminkt\sms\drivers\AbstracDriver`
3. Implement your codes.
4. Attach your driver to library as described before
5. Publish your code in `sms-driver-rest-api` library

List of drivers
---------------

[](#list-of-drivers)

List of driver that published and avilable right now.

Driver namenamespacecreatedBypublish datePardad\\aminkt\\sms\\drivers\\Pardad[Amin Keshavarz](https://gitlab.com/aminkt/)17 / 8 /2017KaveNegar\\aminkt\\sms\\drivers\\KaveNegar[mr-exception](https://gitlab.com/mr-exception/)5 / 2 /2018|

Login Data for Pardad
---------------------

[](#login-data-for-pardad)

parameterstypedescriptionusernamestringusername for authpasswordstringpassword for authLogin Data for KaveNegar
------------------------

[](#login-data-for-kavenegar)

parameterstypedescriptiontokenstringtoken given in cpanel> Be aware use of this library and its driver is alowed for all but you should keep recources and authors names.

Help us to improve
------------------

[](#help-us-to-improve)

If you create your own driver we become so happy if you pulblish it in our library.

[Amin Keshavarz](https://gitlab.com/aminkt/)

[Mr-Exception](https://gitlab.com/mr-exception/)

\[Mail to Aminn Keshavarz\](mailto: [ak\_1596@yahoo.com](mailto:ak_1596@yahoo.com))

###  Health Score

34

—

LowBetter than 79% of packages

Maintenance40

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 81.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 ~1220 days

Total

3

Last Release

699d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8bbb96d5331db7b7c0f1003fdd294ad8865fe7df33cc68bf6cf6fad5550f461e?d=identicon)[aminkt](/maintainers/aminkt)

---

Top Contributors

[![aminkt](https://avatars.githubusercontent.com/u/14914854?v=4)](https://github.com/aminkt "aminkt (9 commits)")[![pardaad](https://avatars.githubusercontent.com/u/17113858?v=4)](https://github.com/pardaad "pardaad (2 commits)")

---

Tags

smsyii2extensionsms driver

### Embed Badge

![Health badge](/badges/aminkt-sms-driver-rest-api/health.svg)

```
[![Health](https://phpackages.com/badges/aminkt-sms-driver-rest-api/health.svg)](https://phpackages.com/packages/aminkt-sms-driver-rest-api)
```

###  Alternatives

[daixianceng/yii2-smser

Yii2 SMS extension

862.9k1](/packages/daixianceng-yii2-smser)[avator/yii2-turbosms

Yii2 turbosms

1030.3k](/packages/avator-yii2-turbosms)[abhi1693/yii2-sms

Send Free Sms for Yii2

171.8k](/packages/abhi1693-yii2-sms)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1356.4k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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