PHPackages                             evildevru/php-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. evildevru/php-sms

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

evildevru/php-sms
=================

Simple client for send sms messages.

v1.0.0(3y ago)015MITPHPPHP ~8.0

Since Jan 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/EvilDevRu/PhpSms)[ Packagist](https://packagist.org/packages/evildevru/php-sms)[ RSS](/packages/evildevru-php-sms/feed)WikiDiscussions master Synced today

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

PHP sms client
==============

[](#php-sms-client)

PHP Client for send sms messages via DI.

Install
-------

[](#install)

composer require evildevru/php-sms

Requirements
------------

[](#requirements)

- PHP &gt;= 8.0

Setting up Yii2
---------------

[](#setting-up-yii2)

yii2 configure file

```
'container' => [
    'singletons' => [
        SmsInterface::class => static function () {
            return new SmsRu($_ENV['SMS_API_KEY'], new SmsClient([
                'base_uri' => 'https://sms.ru',
            ]));
        },
    ],
],
```

for example controller

```
    /**
     * @var SmsInterface
     */
    protected SmsInterface $sms;

    /**
     * @param SmsInterface $sms
     */
    public function __construct(SmsInterface $sms)
    {
        $this->sms = $sms;
    }

    /**
     * @return void
     */
    public function actionIndex(?string $phone): void
    {
        $response = $this->sms->send($phone, 'wake up');
        if (!$response->isSuccess()) {
            throw new RuntimeException();
        }
    }
```

Supported services
------------------

[](#supported-services)

- sms.ru

You can extend this list.

Licence
-------

[](#licence)

MIT

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

1263d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3668960?v=4)[Dmitriy Yurchenko](/maintainers/EvilDevRu)[@EvilDevRu](https://github.com/EvilDevRu)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/evildevru-php-sms/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k41](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[oat-sa/tao-core

TAO core extension

66143.7k121](/packages/oat-sa-tao-core)

PHPackages © 2026

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