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

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

hosannahighertech/yii2-sms
==========================

Yii2 component for sending SMS messages

1.0.1(3y ago)035MITPHPPHP &gt;=7.4.0

Since Mar 5Pushed 2y ago1 watchersCompare

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

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

Yii2 Library for Sending SMSes
==============================

[](#yii2-library-for-sending-smses)

Send SMS from different gateways. See readme for currently supported gateways

How to use Library
------------------

[](#how-to-use-library)

To use the library, simply create Instance of the Sender that you want and send the message. Below is an example to get you started

```
$sms = new \hosannahighertech\sms\senders\BeemSender([
  'key' => 'YOUR_KEY_FROM_BEEM
      'secret' => 'YOUR_SECRET_HERE',
  ]);

 $sms->send('SENDER_NAME_OR_NUMBER', ['255....', '255....'], 'Hi, Test Message from Yii2 SMS');
```

Events
------

[](#events)

This library support two events: `beforeSend` which gives you the SMS that will be sent as a payload and `afterSend` which gives you result from the backend. Here is an example on adding event handlers to the above example

```
$sms = new \hosannahighertech\sms\senders\BeemSender([
  'key' => 'YOUR_KEY_FROM_BEEM
      'secret' => 'YOUR_SECRET_HERE',
  ]);

  $sender->on(SmsSenderInterface::EVENT_BEFORE_SEND, function (SMSEvent $event) {
      $event->message; //this is SMS Object that was sent to the server. Handy to log things if you turned off loggin
  });

  $sender->on(SmsSenderInterface::EVENT_AFTER_SEND, function (SMSEvent $event) {
      $event->message; //this is data that comes from backend. For Beem, it is request_id
  });

 $sms->send('SENDER_NAME_OR_NUMBER', ['255....', '255....'], 'Hi, Test Message from Yii2 SMS');
```

Supported Gateways
------------------

[](#supported-gateways)

- BEEM Africa (see  )

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Total

2

Last Release

1166d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c021a0fa6c1e35d69de6a6027e607b9f14efe6844c9072246d7f795c29809d3?d=identicon)[Stefano Mtangoo](/maintainers/Stefano%20Mtangoo)

---

Top Contributors

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

---

Tags

smsyii2beem

### Embed Badge

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

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

###  Alternatives

[daixianceng/yii2-smser

Yii2 SMS extension

862.9k1](/packages/daixianceng-yii2-smser)[saviorlv/yii2-dysms

Aliyun SMS SDK for Yii2

1316.5k1](/packages/saviorlv-yii2-dysms)[abhi1693/yii2-sms

Send Free Sms for Yii2

171.9k](/packages/abhi1693-yii2-sms)

PHPackages © 2026

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