RentBetter / just-call-notifier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JustCall Notifier

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

About

License:MIT License


Languages

Language:PHP 100.0%