rentbetter / just-call-notifier
Symfony JustCall Notifier Bridge
Installs: 699
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Type:symfony-notifier-bridge
Requires
- php: >=8.1
- symfony/event-dispatcher: ^5.4|^6.0
- symfony/http-client: ^5.4|^6.0
- symfony/notifier: ^5.4|^6.0
Requires (Dev)
- phpunit/phpunit: ^9
README
Provides JustCall integration for Symfony Notifier.
Installation
- Install package using composer
composer require rentbetter/just-call-notifier:^6.1
- Add your JustCall DSN to your environment variables, e.g. in
.env
JUST_CALL_DSN=justCall://API_KEY:API_SECRET@default?from=FROM
- Register the
JustCallTransportFactory
in yourservices.yaml
notifier.transport_factory.justCall: class: Symfony\Component\Notifier\Bridge\JustCall\JustCallTransportFactory parent: notifier.transport_factory.abstract tags: ['texter.transport_factory']
- Enable the JustCall transport in your
config/packages/notifier.yaml
configuration
framework: notifier: texter_transports: justCall: '%env(JUST_CALL_DSN)%'
- Start sending SMS in your application, see the symfony docs
DSN example
JUST_CALL_DSN=justCall://API_KEY:API_SECRET@default?from=FROM
where:
API_KEY
is your JustCall api keyAPI_SECRET
is your JustCall api secretFROM
is your sender, E.164 without the leading +