Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/symfony/esendex-notifier
Symfony Esendex Notifier Bridge
https://github.com/symfony/esendex-notifier
component esendex notifier php sms symfony symfony-component
Last synced: about 1 month ago
JSON representation
Symfony Esendex Notifier Bridge
- Host: GitHub
- URL: https://github.com/symfony/esendex-notifier
- Owner: symfony
- License: mit
- Created: 2020-08-26T06:52:36.000Z (about 4 years ago)
- Default Branch: 7.1
- Last Pushed: 2024-09-27T08:38:30.000Z (about 2 months ago)
- Last Synced: 2024-09-30T16:23:04.264Z (about 2 months ago)
- Topics: component, esendex, notifier, php, sms, symfony, symfony-component
- Language: PHP
- Homepage: https://symfony.com/notifier
- Size: 75.2 KB
- Stars: 6
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Esendex Notifier
================Provides [Esendex](https://esendex.com) integration for Symfony Notifier.
DSN example
-----------```
ESENDEX_DSN=esendex://EMAIL:PASSWORD@default?accountreference=ACCOUNT_REFERENCE&from=FROM
```where:
- `EMAIL` is your Esendex account email
- `PASSWORD` is the Esendex API password
- `ACCOUNT_REFERENCE` is the Esendex account reference that the messages should be sent from
- `FROM` is the alphanumeric originator for the message to appear to originate fromSee Esendex documentation at https://developers.esendex.com/api-reference#smsapis
Adding Options to a Message
---------------------------With an Esendex Message, you can use the `EsendexOptions` class to add message options.
```php
use Symfony\Component\Notifier\Message\SmsMessage;
use Symfony\Component\Notifier\Bridge\Esendex\EsendexOptions;$sms = new SmsMessage('+1411111111', 'My message');
$options = (new EsendexOptions())
->accountReference('account_reference')
// ...
;// Add the custom options to the sms message and send the message
$sms->options($options);$texter->send($sms);
```Resources
---------* [Contributing](https://symfony.com/doc/current/contributing/index.html)
* [Report issues](https://github.com/symfony/symfony/issues) and
[send Pull Requests](https://github.com/symfony/symfony/pulls)
in the [main Symfony repository](https://github.com/symfony/symfony)