Provides JustCall integration for Symfony Notifier.
- 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
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 +