Symfony Notifier bridge to use Bulksms.ma
PHP 7.4 or higher
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']