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
- Host: GitHub
- URL: https://github.com/jbtcd/symfony-notifier-example
- Owner: jbtcd
- Created: 2022-07-26T11:02:03.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-03T02:23:20.000Z (over 1 year ago)
- Last Synced: 2025-01-21T03:43:05.578Z (over 1 year ago)
- Topics: notifier, sms, symfony, twilio, twilio-sms-api
- Language: PHP
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](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