mehdibo / bulksms-notifier
Symfony Bulksms Notifier Bridge
Installs: 64
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Type:symfony-bridge
Requires
- php: ^7.4
- ext-json: *
- symfony/http-client: ^5.2
- symfony/notifier: ^5.2
This package is auto-updated.
Last update: 2024-11-13 16:36:43 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']