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

v6.1.4 2024-03-01 04:59 UTC

This package is auto-updated.

Last update: 2024-04-30 05:18:38 UTC


README

Provides JustCall integration for Symfony Notifier.

Installation

  1. Install package using composer
composer require rentbetter/just-call-notifier:^6.1
  1. Add your JustCall DSN to your environment variables, e.g. in .env
JUST_CALL_DSN=justCall://API_KEY:API_SECRET@default?from=FROM
  1. Register the JustCallTransportFactory in your services.yaml
notifier.transport_factory.justCall:
   class: Symfony\Component\Notifier\Bridge\JustCall\JustCallTransportFactory
   parent: notifier.transport_factory.abstract
   tags: ['texter.transport_factory']
  1. Enable the JustCall transport in your config/packages/notifier.yaml configuration
framework:
  notifier:
    texter_transports:
      justCall: '%env(JUST_CALL_DSN)%'
  1. 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 key
  • API_SECRET is your JustCall api secret
  • FROM is your sender, E.164 without the leading +

Resources