Skip to content

Commit

Permalink
[Notifier] Document Notifier options in README files
Browse files Browse the repository at this point in the history
  • Loading branch information
alamirault authored and nicolas-grekas committed May 20, 2023
1 parent 4cfddcb commit a538fa5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,28 @@ where:

See 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
---------

Expand Down

0 comments on commit a538fa5

Please sign in to comment.