steppinghat / symfony-d7-notifier
Provides D7 networks integration for Symfony Notifier
Installs: 369
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-notifier-bridge
Requires
- php: >=7.4
- ext-json: *
- ext-mbstring: *
- giggsey/libphonenumber-for-php: ^8.0
- symfony/event-dispatcher: ^5.4
- symfony/http-client: ^5.4
- symfony/notifier: ^5.4
Requires (Dev)
- phpunit/phpunit: ^9.5
- symfony/phpunit-bridge: ^6.0
This package is auto-updated.
Last update: 2024-10-13 07:35:18 UTC
README
Provides D7 Networks integration for Symfony Notifier.
Installation
Install this package using composer
composer require steppinghat/symfony-d7-notifier
Add the D7 transport in config/pakages/notifier.yaml
framework: notifier: texter_transports: d7: '%env(D7_DSN)%' # ADD MEE!
Define the D7 DSN environment variable in .env
D7_DSN=d7://<TOKEN>@default?<PARAMETERS>
TOKEN
is your D7 Networks API token and PARAMETERS
is a query string that is built with the following parameters:
A typical example DSN would be:
D7_DSN=d7://abcd1234@default?from=SteppingHat&defaultLocale=AU
and lastly register the service in services.yaml
notifier.transport_factory.d7: class: SteppingHat\D7Notifier\D7TransportFactory parent: notifier.transport_factory.abstract tags: [texter.transport_factory]
Contributing
Tests
Included for library development purposes is a small set of test cases to assure that basic library functions work as expected. These tests can be launched by running the following:
$ vendor/bin/phpunit
License
Made with ❤ by Javan Eskander
Available for use under the MIT license