Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/symfony/gateway-api-notifier
Symfony GatewayApi Notifier Bridge
https://github.com/symfony/gateway-api-notifier
component gatewayapi notifier php sms symfony symfony-component
Last synced: 3 months ago
JSON representation
Symfony GatewayApi Notifier Bridge
- Host: GitHub
- URL: https://github.com/symfony/gateway-api-notifier
- Owner: symfony
- License: mit
- Created: 2021-01-15T06:14:27.000Z (about 4 years ago)
- Default Branch: 7.1
- Last Pushed: 2024-09-27T08:39:47.000Z (4 months ago)
- Last Synced: 2024-09-30T16:23:04.252Z (4 months ago)
- Topics: component, gatewayapi, notifier, php, sms, symfony, symfony-component
- Language: PHP
- Homepage: https://symfony.com/notifier
- Size: 67.4 KB
- Stars: 4
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
GatewayApi Notifier
===================Provides GatewayApi integration for Symfony Notifier.
DSN example
-----------```
GATEWAYAPI_DSN=gatewayapi://TOKEN@default?from=FROM
```where:
- `TOKEN` is API Token (OAuth)
- `FROM` is sender nameSee your account info at https://gatewayapi.com
Adding Options to a Message
---------------------------With a GatewayApi Message, you can use the `GatewayApiOptions` class to add
[message options](https://gatewayapi.com/docs/apis/rest/).```php
use Symfony\Component\Notifier\Message\SmsMessage;
use Symfony\Component\Notifier\Bridge\GatewayApi\GatewayApiOptions;$sms = new SmsMessage('+1411111111', 'My message');
$options = (new GatewayApiOptions())
->class('standard')
->callbackUrl('https://my-callback-url')
->userRef('user_ref')
// ...
;// 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)