proklung/smstraffic-notifier

Symfony SMSTRAFFIC.RU Notifier Bridge

1.0.3 2021-07-27 09:10 UTC

This package is auto-updated.

Last update: 2024-10-27 16:22:14 UTC


README

Provides SMSTRAFFIC integration for Symfony Notifier.

Installation

composer.json:

    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/proklung/smstraffic-notifier"
        }
    ]
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

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