Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/symfony/primotexto-notifier
Symfony Primotexto Notifier Bridge
https://github.com/symfony/primotexto-notifier
component notifier php primotexto sms symfony symfony-component
Last synced: 4 months ago
JSON representation
Symfony Primotexto Notifier Bridge
- Host: GitHub
- URL: https://github.com/symfony/primotexto-notifier
- Owner: symfony
- License: mit
- Created: 2024-05-31T08:40:59.000Z (8 months ago)
- Default Branch: 7.2
- Last Pushed: 2024-09-27T08:39:53.000Z (4 months ago)
- Last Synced: 2024-09-30T16:03:13.364Z (4 months ago)
- Topics: component, notifier, php, primotexto, sms, symfony, symfony-component
- Language: PHP
- Homepage: https://symfony.com/notifier
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Primotexto Notifier
===================Provides [Primotexto](https://www.primotexto.com/) integration for Symfony Notifier.
DSN example
-----------```
PRIMOTEXTO_DSN=primotexto://APIKEY@default?from=FROM
```where:
- `APIKEY` is your Primotexto API key
- `FROM` is your sender nameAdding Options to a Message
---------------------------With a Primotexto Message, you can use the `PrimotextoOptions` class to add
[message options](https://www.primotexto.com/api/sms/notification.asp).```php
use Symfony\Component\Notifier\Message\SmsMessage;
use Symfony\Component\Notifier\Bridge\Primotexto\PrimotextoOptions;$sms = new SmsMessage('+1411111111', 'My message');
$options = (new PrimotextoOptions())
->campaignName('Code de confirmation')
->category('codeConfirmation')
->campaignDate(1398177000000)
// ...
;// Add the custom options to the sms message and send the message
$sms->options($options);$texter->send($sms);
```Resources
---------* [Primotexto error codes](https://www.primotexto.com/api/plus/code_erreurs)
* [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)