PHPackages                             pf2pr/mainsms-notifier - 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. pf2pr/mainsms-notifier

ActiveSymfony-notifier-bridge

pf2pr/mainsms-notifier
======================

Symfony Mainsms Notifier Bridge

v0.1.1(10mo ago)0674↓33.3%MITPHPPHP &gt;=8.1

Since Jun 18Pushed 10mo agoCompare

[ Source](https://github.com/pf2pr/mainsms-notifier)[ Packagist](https://packagist.org/packages/pf2pr/mainsms-notifier)[ RSS](/packages/pf2pr-mainsms-notifier/feed)WikiDiscussions main Synced 1mo ago

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

Mainsms Notifier
================

[](#mainsms-notifier)

Provides [Mainsms](https://mainsms.ru) integration for Symfony Notifier.

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

[](#installation)

```
composer require pf2pr/mainsms-notifier
```

Configuration
-------------

[](#configuration)

### Register the transport factory

[](#register-the-transport-factory)

```
# config/services.yaml
Pf2Pr\Notifier\Bridge\Mainsms\MainsmsTransportFactory:
    tags: ['texter.transport_factory']
```

### Configure the transport

[](#configure-the-transport)

```
# config/packages/notifier.yaml
framework:
    notifier:
        texter_transports:
            mainsms: '%env(MAINSMS_DSN)%'
```

Then define the DSN in your `.env` file.

DSN example
-----------

[](#dsn-example)

```
MAINSMS_DSN=mainsms://APIKEY@default?project=PROJECT&sender=SENDER&strategy=STRATEGY&timeout=TIMEOUT&test=TEST
```

### DSN parameters

[](#dsn-parameters)

- **APIKEY** — Your Mainsms API key (**required**)
- **project** — Project name (**required**)
- **sender** — Sender name (optional)
- **strategy** — Message delivery strategy (optional):
    - omitted or `-1`: SMS only
    - `1`: Viber only
    - `2`: Viber or SMS
- **timeout** — HTTP request timeout (numeric, optional)
- **test** — Enable test mode (`true` or `false`, default: `false`) (optional)

Resources
---------

[](#resources)

- [Mainsms API Documentation](https://mainsms.ru/home/api)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance56

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

324d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/423423bed0d2ad57beba35a22351757ad587a383683e97f8bb228f8f65368b6d?d=identicon)[pf2pr](/maintainers/pf2pr)

---

Top Contributors

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

---

Tags

notifiersmsmainsms

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pf2pr-mainsms-notifier/health.svg)

```
[![Health](https://phpackages.com/badges/pf2pr-mainsms-notifier/health.svg)](https://phpackages.com/packages/pf2pr-mainsms-notifier)
```

###  Alternatives

[symfony/fake-sms-notifier

Fake SMS (as email or log during development) Notifier Bridge.

27754.2k1](/packages/symfony-fake-sms-notifier)[symfony/twilio-notifier

Symfony Twilio Notifier Bridge

131.2M2](/packages/symfony-twilio-notifier)[symfony/free-mobile-notifier

Symfony Free Mobile Notifier Bridge

2061.6k](/packages/symfony-free-mobile-notifier)[symfony/sendinblue-notifier

Symfony Sendinblue Notifier Bridge

12106.1k](/packages/symfony-sendinblue-notifier)[symfony/sinch-notifier

Symfony Sinch Notifier Bridge

10146.7k](/packages/symfony-sinch-notifier)[symfony/mailjet-notifier

Symfony Mailjet Notifier Bridge

1362.5k](/packages/symfony-mailjet-notifier)

PHPackages © 2026

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