yieldstudio/symfony-fake-sms-notifier

Fake SMS (as email during development) integration for Symfony Notifier.

1.0.1 2022-06-01 17:03 UTC

This package is auto-updated.

Last update: 2024-11-30 01:56:36 UTC


README

Latest Version GitHub Workflow Status Total Downloads

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 development
  • FROM 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.