steppinghat/symfony-d7-notifier

Provides D7 networks integration for Symfony Notifier

Installs: 383

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 1

Type:symfony-notifier-bridge

1.2.0 2022-03-21 11:28 UTC

This package is auto-updated.

Last update: 2024-12-12 00:48:17 UTC


README

Latest Stable Version Total Downloads License Build Status

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