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

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

litgroup/sms
============

Provider neutral SMS library.

v0.6.0(10y ago)05081MITPHPPHP ~5.5|~7.0

Since Dec 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/LitGroup/sms.php)[ Packagist](https://packagist.org/packages/litgroup/sms)[ RSS](/packages/litgroup-sms/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (8)Used By (1)

SMS
===

[](#sms)

🚫 This project is no longer maintained.

> Provider neutral SMS library for PHP 5.5+

[![Version](https://camo.githubusercontent.com/96b63e37e1f89e4f9586f642a1e6dd57e988b7a4fc98e48da5418bff501dcb7d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c697467726f75702f736d732e737667)](https://packagist.org/packages/litgroup/sms)[![Dev Version](https://camo.githubusercontent.com/6cca0f58a73ff257fcc27fc46045ec07b1da085a8e4ae2c4e132cf41a15e7bf8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f6c697467726f75702f736d732e737667)](https://packagist.org/packages/litgroup/sms)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/LitGroup/sms.php/blob/master/LICENSE)[![Downloads](https://camo.githubusercontent.com/1316a12843e74af0cdc01d8c550b287c34adbe915a1c3cc48a334ae45a80938d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c697467726f75702f736d732e737667)](https://packagist.org/packages/litgroup/sms)[![Build Status](https://camo.githubusercontent.com/6f96b7b6cf20f06c81ade63c9766667dcd0ac039ce07c879ef239ad2d700d015/68747470733a2f2f7472617669732d63692e6f72672f4c697447726f75702f736d732e7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/LitGroup/sms.php)

Read the documentation for the last release [here](https://github.com/LitGroup/sms.php/blob/v0.6.0/README.md).

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

[](#installation)

```
composer require litgroup/sms=0.6.*

```

Example of usage
----------------

[](#example-of-usage)

### Message sending

[](#message-sending)

```
use LitGroup\Sms\Message;
use LitGroup\Sms\MessageService;
use LitGroup\Sms\Exception\SmsException;

// Some implementation of `LitGroup\Sms\Gateway\GatewayInterface`
$gateway = new SomeGateway();

// Create Short Message Service
$messageService = new MessageService($gateway);

// Create and send some message.
try {
    $messageService->sendMessage(
        'Hello, customer!',
        ['+79991234567'],
        'AcmeCompany'
    );
} catch (SmsException $e) {
    // ...
}
```

### Use cascade of gateways

[](#use-cascade-of-gateways)

It's possible to use cascade of gateways of several providers to improve fault-tolerance. Use `LitGroup\Sms\Gateway\CascadeGateway`.

```
$cascadeGateway = new CascadeGateway([
    new AGateway(),
    new BGateway(),
]);

$messageService = new MessageService($cascadeGateway);
```

### Logging of exceptions

[](#logging-of-exceptions)

- Constructor of `MessageService` receives `Psr\Log\LoggerInterface`.
- If you use `CascadeGateway` then inject a logger into the instance of `CascadeGateway` too. `Warnings` will be logged if some of gateways are inoperative.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

Recently: every ~45 days

Total

7

Last Release

3669d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

smsshort message

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k196.2M3.0k](/packages/composer-composer)[symfony/lock

Creates and manages locks, a mechanism to provide exclusive access to a shared resource

514139.2M641](/packages/symfony-lock)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

562565.8k44](/packages/ecotone-ecotone)[civicrm/civicrm-core

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

751284.3k37](/packages/civicrm-civicrm-core)[logiscape/mcp-sdk-php

Model Context Protocol SDK for PHP

368116.8k12](/packages/logiscape-mcp-sdk-php)[symfony/ai-platform

PHP library for interacting with AI platform provider.

521.4M230](/packages/symfony-ai-platform)

PHPackages © 2026

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