yieldstudio / symfony-spot-hit-notifier
Spot-Hit integration for Symfony Notifier.
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 2
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.4.0
- symfony/event-dispatcher-contracts: ^2
- symfony/http-client: ^4.3|^5.0
- symfony/notifier: ^5.2
Requires (Dev)
- phpunit/phpunit: ^6.5 || ^7
- squizlabs/php_codesniffer: 3.*
This package is auto-updated.
Last update: 2021-03-27 22:34:58 UTC
README
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
:
YieldStudio\Notifier\SpotHit\SpotHitNotifierBundle::class => ['all' => true],
Enable the Spot-Hit transport
Add the spothit
chatter in config/packages/notifier.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 keyFROM
is the custom sender (3-11 letters, default is a 5 digits phone number)
Running the Tests
Install the Composer dependencies:
git clone https://github.com/YieldStudio/symfony-spot-hit-notifier.git
cd symfony-spot-hit-notifier
composer update
Then run the test suite:
composer test
License
This bundle is released under the MIT license.