mehdibo/bulksms-notifier

Symfony Bulksms Notifier Bridge

0.2.1 2020-12-21 18:26 UTC

This package is auto-updated.

Last update: 2024-04-22 01:30:14 UTC


README

Symfony Notifier bridge to use Bulksms.ma

Requirements

PHP 7.4 or higher

Installation

Use composer to require the library:

composer require mehdibo/bulksms-notifier

Add the token to your .env file

BULKSMS_DSN=bulksms://token_here@default?shortcode=a_shortcode

Add bulksms to config/packages/notifier.yaml:

framework:
    notifier:
        texter_transports:
            bulksms: '%env(BULKSMS_DSN)%' # Add this line

Add this to config/services.yaml:

notifier.transport_factory.bulksms:
        class: Mehdibo\Symfony\Notifier\Bridge\Bulksms\BulksmsTransportFactory
        tags: ['texter.transport_factory']