PHPackages                             bakhritdinov/sms\_manager - 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. bakhritdinov/sms\_manager

ActiveLibrary

bakhritdinov/sms\_manager
=========================

SMS Manager with opportunity automatic switching gateway

13PHP

Since Jan 23Pushed 6y ago1 watchersCompare

[ Source](https://github.com/bakhritdinov/sms-manager)[ Packagist](https://packagist.org/packages/bakhritdinov/sms_manager)[ RSS](/packages/bakhritdinov-sms-manager/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

SMS Manager with opportunity automatic switching gateway
========================================================

[](#sms-manager-with-opportunity-automatic-switching-gateway)

The package provides opportunity to implement your own SMS gateways however you want.

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

[](#installation)

```
composer require bakhritdinov/sms-manager
```

### Laravel

[](#laravel)

Register "Bakhritdinov\\SMSManager\\Support\\LaravelServiceProvider" to the config/app.php configuration file:

```
'providers' => [
    // Other service providers...

    Bakhritdinov\SMSManager\Support\LaravelServiceProvider::class,
],
```

Add the SMSManager facade to the aliases array of the configuration file:

```
'SMSManager' => Bakhritdinov\SMSManager\Support\Facades\SMSManager::class,
```

Generate config/sms\_manager.php

```
php artisan vendor:publish
```

### Lumen

[](#lumen)

or bootstrap/app.php

```
$app->register(Bakhritdinov\SMSManager\Support\LumenServiceProvider::class);
```

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

[](#requirements)

> PHP 7.1.3 higher

> Laravel or Lumen 5.7 higher

> Composer

Features
--------

[](#features)

- Automatic switching SMS gateway by priority
- Opportunity to control SMS gateways priority
- Sending SMS notifications immediately
- Sending SMS notifications via a queue in the background
- Implement own SMS gateways without limits
- Retry protection

What is missing?
----------------

[](#what-is-missing)

- Opportunity mass sending
- Controllers for SMS Gateway priority management

Over time, I will fix all the flaws, if you find any one, please, report me.

Using
-----

[](#using)

```
SmsManager::getBuilder()
        ->toNumber(998974614334)
        ->withMessage('Hello! From default gateway')
        ->sendImmediately();
```

The first case sends SMS notification to the specified number using the SMS gateway with the highest priority.

The sendImmediately method sends messages without a queue, waiting for a response from the SMS center.

```
SmsManager::getBuilder()
        ->toNumber(998974614334)
        ->withMessage('Hello! From first gateway')
        ->withGateway('first_gateway')
        ->sendImmediately();
```

The second case sends an SMS notification to the specified number, while defining the desired SMS gateway, but waiting for a response from the SMS center.

```
SmsManager::getBuilder()
        ->toNumber(998974614334)
        ->withMessage('Hello! From queue')
        ->addToQueue();
```

The third case creates a queue for sending a message to the specified number, while also using the SMS gateway with the highest priority.

It is very useful. For example, when registering, the client does not have to wait for a response from the SMS center.

License
-------

[](#license)

[MIT](https://github.com/bakhritdinov/sms-manager/blob/master/LICENSE)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravellumenphpsms-gatewaysms-manager

### Embed Badge

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

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

PHPackages © 2026

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