An open API service indexing awesome lists of open source software.

https://github.com/jbtcd/symfony-notifier-example

Symfony example to send notifications via twilio
https://github.com/jbtcd/symfony-notifier-example

notifier sms symfony twilio twilio-sms-api

Last synced: about 2 months ago
JSON representation

Symfony example to send notifications via twilio

Awesome Lists containing this project

README

          

[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine/)

# Symfony Notifier SMS Example 📱💬

This project provides an example implementation of the [symfony notifier bundle][3] with [twilio][1] as the SMS provider.

## Preparations

```bash
composer install
```

Create a [twilio][1] account and replace arguments in [local .env][2] file

## Run the command

Just call the send-sms command and replace phone-number with the phone number which should receive the message
```bash
php bin/console app:send-sms phone-number
```

You also can provide the message which should send to the given phone number
```bash
php bin/console app:send-sms phone-number 'This is the message.'
```

[1]: https://console.twilio.com/
[2]: .env
[3]: https://symfony.com/doc/current/notifier.html