Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/proklung/smstraffic-notifier
- Owner: ProklUng
- Created: 2021-07-27T08:49:49.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-27T09:11:22.000Z (over 3 years ago)
- Last Synced: 2024-04-23T03:03:01.359Z (7 months ago)
- Topics: notifier, php, php7, sms, symfony
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.MD
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']
```