yieldstudio / symfony-fake-sms-notifier
Fake SMS (as email during development) integration for Symfony Notifier.
Installs: 373
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.4.0
- symfony/event-dispatcher-contracts: ^2
- symfony/http-client: ^4.3|^5.0
- symfony/mailer: ^5.2
- symfony/notifier: ^5.2
Requires (Dev)
- phpunit/phpunit: ^6.5 || ^7 || ^8
- squizlabs/php_codesniffer: 3.*
This package is auto-updated.
Last update: 2024-10-30 01:37:31 UTC
README
Provides Fake SMS (as email during development) integration for Symfony Notifier.
Installation
composer require yieldstudio/symfony-fake-sms-notifier
Enable the Bundle
Add following line in bundles.php
:
YieldStudio\Notifier\FakeSms\FakeSmsNotifierBundle::class => ['all' => true],
Enable the Fake SMS transport
Add the fakesms
chatter in config/packages/notifier.yaml
framework: notifier: texter_transports: fakesms: '%env(FAKE_SMS_DSN)%'
DSN example
// .env file
FAKE_SMS_DSN=fakesms://email?to=TO&from=FROM
where:
TO
is email who receive SMS during developmentFROM
is email who send SMS during development
Running the Tests
Install the Composer dependencies:
git clone https://github.com/YieldStudio/symfony-fake-sms-notifier.git
cd symfony-fake-sms-notifier
composer update
Then run the test suite:
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you've found a bug regarding security please mail contact@yieldstudio.fr instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.