Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yieldstudio/symfony-spot-hit-notifier
Provides Spot-Hit integration for Symfony Notifier.
https://github.com/yieldstudio/symfony-spot-hit-notifier
notifier sms spot-hit symfony symfony-bundle
Last synced: about 2 months ago
JSON representation
Provides Spot-Hit integration for Symfony Notifier.
- Host: GitHub
- URL: https://github.com/yieldstudio/symfony-spot-hit-notifier
- Owner: YieldStudio
- License: mit
- Archived: true
- Created: 2020-12-09T18:09:36.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-27T22:34:24.000Z (over 3 years ago)
- Last Synced: 2024-09-29T17:23:08.948Z (about 2 months ago)
- Topics: notifier, sms, spot-hit, symfony, symfony-bundle
- Language: PHP
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Spot-Hit Notifier
====================Provides Spot-Hit integration for Symfony Notifier.
⚠️ Merged in Symfony core.
https://github.com/symfony/symfony/pull/39948| Symfony Version | Package Version |
|-----------------|-----------------|
| ~5.1.0 | 0.0.2 |
| ^5.2 | ^1.0.0 |Installation
-----------```
composer require yieldstudio/symfony-spot-hit-notifier
```#### Enable the Bundle
Add following line in `bundles.php`:
```php
YieldStudio\Notifier\SpotHit\SpotHitNotifierBundle::class => ['all' => true],
```#### Enable the Spot-Hit transport
Add the `spothit` chatter in `config/packages/notifier.yaml`````yaml
framework:
notifier:
texter_transports:
spothit: '%env(SPOTHIT_DSN)%'
````#### DSN example
```
// .env file
SPOTHIT_DSN=spothit://TOKEN@default?from=FROM
```where:
- `TOKEN` is your Spot-Hit API key
- `FROM` is the custom sender (3-11 letters, default is a 5 digits phone number)Running the Tests
---------Install the [Composer](http://getcomposer.org/) dependencies:
git clone https://github.com/YieldStudio/symfony-spot-hit-notifier.git
cd symfony-spot-hit-notifier
composer updateThen run the test suite:
composer test
## License
This bundle is released under the MIT license.