Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/proklung/smstraffic-notifier

Symfony SMSTRAFFIC.RU Notifier Bridge
https://github.com/proklung/smstraffic-notifier

notifier php php7 sms symfony

Last synced: 11 days ago
JSON representation

Symfony SMSTRAFFIC.RU Notifier Bridge

Awesome Lists containing this project

README

        

SMSTRAFFIC Notifier
=============

Provides [SMSTRAFFIC](https://smstraffic.ru/) integration for Symfony Notifier.

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

composer.json:

```json
"repositories": [
{
"type": "git",
"url": "https://github.com/proklung/smstraffic-notifier"
}
]
```

```bash

composer require proklung/smstraffic-notifier

```

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

```
SMSTRAFFIC_DSN=smstraffic://LOGIN:PASSWORD@default?from=FROM
```

where:
- `LOGIN` is your login
- `PASSWORD` is your API password
- `FROM` is your sender (NB: text identity, not a phone number)

Нюансы
------

В кастомных вариантах `Symfony` фабрику `SmsTrafficTransportFactory` надо пометить тэгом вручную (автоконфигурация
не срабатывает).

`services.yaml`

```yaml
Prokl\Component\Notifier\Bridge\SmsTraffic\SmsTrafficTransportFactory:
class: Prokl\Component\Notifier\Bridge\SmsTraffic\SmsTrafficTransportFactory
tags: ['texter.transport_factory']
```