PHPackages                             abhi1693/yii2-sms - 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. abhi1693/yii2-sms

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

abhi1693/yii2-sms
=================

Send Free Sms for Yii2

v2.0.0(11y ago)171.9k↑50%12MIT LicensePHP

Since Feb 1Pushed 5y ago3 watchersCompare

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

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Yii2-Sms
========

[](#yii2-sms)

[![Gratipay User](https://camo.githubusercontent.com/8e3c2cc1ad9dd93c56820fefea9f21aa912c30661bfa682fe6aca2ae990b9366/68747470733a2f2f696d672e736869656c64732e696f2f67726174697061792f757365722f61626869313639332e7376673f7374796c653d666c61742d737175617265)](https://gratipay.com/~abhi1693)[![Dependency Status](https://camo.githubusercontent.com/dcdb6389622f9b3ad567698c764a97b3a2af1e66e7fef6cf276db3a36937af6a/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3534653165363661306139313062323564653030303162302f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/54e1e66a0a910b25de0001b0)[![Latest Stable Version](https://camo.githubusercontent.com/d6b90ca603fc86ff6d1dc14fc6ff1899348080b319e778f72332516b753b4037/68747470733a2f2f706f7365722e707567782e6f72672f61626869313639332f796969322d736d732f762f737461626c652e737667)](https://packagist.org/packages/abhi1693/yii2-sms) [![Total Downloads](https://camo.githubusercontent.com/558abe9b7c36cb91051794054462e6971c95c850b04055eb62324b98239c099b/68747470733a2f2f706f7365722e707567782e6f72672f61626869313639332f796969322d736d732f646f776e6c6f6164732e737667)](https://packagist.org/packages/abhi1693/yii2-sms) [![Latest Unstable Version](https://camo.githubusercontent.com/dd25af0771aed87afda81208d8333a4c60cde56ec5cfa186cc250ea124ee618e/68747470733a2f2f706f7365722e707567782e6f72672f61626869313639332f796969322d736d732f762f756e737461626c652e737667)](https://packagist.org/packages/abhi1693/yii2-sms) [![License](https://camo.githubusercontent.com/e0f5e1e616e609de4efc8db54137ea4b2009c1bc096fe561cf31644441140281/68747470733a2f2f706f7365722e707567782e6f72672f61626869313639332f796969322d736d732f6c6963656e73652e737667)](https://packagist.org/packages/abhi1693/yii2-sms)

Yii2-Sms sends free messages using Swift Mail

Documentation
=============

[](#documentation)

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

[](#installation)

This document will guide you through the process of installing Yii2-Sms using **composer**.

#### Download using composer

[](#download-using-composer)

```
$ php composer.phar require abhi1693/yii2-sms 2.0.0
```

Or Add Yii2-Sms to the require section of your **composer.json** file:

```
{
    "require": {
        "abhi1693/yii2-sms": "2.0.0"
    }
}
```

And run following command to download extension using **composer**:

```
$ php composer.phar update
```

Basic Usage
-----------

[](#basic-usage)

#### Valid Carriers

[](#valid-carriers)

- AT&amp;T
- Boost Mobile
- Cingular
- Metro PCS
- Nextel
- Sprint
- T-Mobile
- Verizon
- Virgin Mobile

#### Usage

[](#usage)

```
$sms = new Sms();

$sms->transportType    = 'php'; // php/smtp
$sms->transportOptions = [
        'host'       => 'smtp.gmail.com',     // Other domains can also be used
        'username'   => 'your@gmail.com',
        'password'   => '******',
        'port'       => '465',
        'encryption' => 'ssl'
    ];
$carrier = "T-Mobile";
$number = "0123456789";
$subject = "Subject";
$message = "Message";
$sms->send($carrier, $number, $subject, $message);
```

#### How to contribute?

[](#how-to-contribute)

Contributing instructions are located in [CONTRIBUTING.md](CONTRIBUTING.md) file.

License
-------

[](#license)

Yii2-sms is released under the MIT License. See the bundled [LICENSE](LICENSE.md) for details.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 93.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 ~25 days

Total

2

Last Release

4094d ago

Major Versions

v1.0.0 → v2.0.02015-02-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/a4a99a3f28d332902a07f63e7ba1fbd7d05203aae7b4caf7e065902ccb26fe2c?d=identicon)[abhi1693](/maintainers/abhi1693)

---

Top Contributors

[![abhi1693](https://avatars.githubusercontent.com/u/5083532?v=4)](https://github.com/abhi1693 "abhi1693 (15 commits)")[![dcb9](https://avatars.githubusercontent.com/u/3984347?v=4)](https://github.com/dcb9 "dcb9 (1 commits)")

---

Tags

smsyii2extension

### Embed Badge

![Health badge](/badges/abhi1693-yii2-sms/health.svg)

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

###  Alternatives

[daixianceng/yii2-smser

Yii2 SMS extension

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

Yii2 turbosms

1030.5k](/packages/avator-yii2-turbosms)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

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

PHPackages © 2026

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