yieldstudio/symfony-fake-sms-notifier
A Symfony notifier transport that fakes SMS delivery for testing and local development, letting you intercept outgoing messages without hitting real providers. Ideal for asserting notifications in functional tests and keeping dev environments safe.
This is a Symfony Notifier bridge, not a Laravel package. In a Laravel app, treat it as a dev/test utility for intercepting outbound SMS instead of hitting a real gateway.
composer require --dev yieldstudio/symfony-fake-sms-notifier
composer require symfony/notifier
fake-sms:// or the transport name exposed by the package — confirm the exact DSN in the package README).Symfony\Component\Notifier\Notifier and assert that the fake transport captured it rather than sending a real message.Look first at the package’s transport class and any test helpers it exposes. Those tell you how to retrieve captured messages and reset state between tests.
local and testing environments. In Laravel, conditionally bind the Symfony Notifier service in a service provider based on app()->environment().Notifier instance with the fake transport and bind it as a singleton. This avoids constructing the transport repeatedly.setUp or via a RefreshDatabase-style trait so tests don’t leak state.How can I help you explore Laravel packages today?