Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Fake Sms Notifier Laravel Package

symfony/fake-sms-notifier

Symfony Notifier transport that fakes SMS delivery during development. Redirect SMS messages to email (with configurable to/from and optional custom mailer transport) or log them via a logger DSN, without sending real texts.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Accelerate SMS feature development: Enables rapid iteration of SMS-based workflows (e.g., OTPs, transactional alerts, or multi-factor authentication) without incurring SMS carrier costs during development. Reduces time-to-market for SMS-dependent features by eliminating dependency on real SMS gateways in non-production environments.
  • Cost-efficient prototyping and testing: Mitigates financial risk during early-stage development by avoiding SMS carrier fees (e.g., Twilio, AWS SNS) for iterative testing. Justifies investment in SMS-heavy features by reducing technical debt upfront.
  • Improved debugging and QA: Provides visibility into SMS payloads via email or logs, enabling developers and QA teams to validate content, formatting, and edge cases (e.g., character limits, encoding) without manual inspection of carrier dashboards.
  • Environment parity: Ensures consistency between development, staging, and production by simulating SMS behavior in non-production environments. Reduces "works on my machine" issues for SMS-related bugs.
  • Roadmap prioritization: Enables teams to de-risk SMS features by validating logic early, making it easier to prioritize high-impact use cases (e.g., fraud alerts, customer notifications) without worrying about SMS costs during development.
  • Build vs. buy decision: Avoids reinventing the wheel by leveraging a maintained, MIT-licensed package (Symfony ecosystem) rather than building a custom SMS mocking solution. Aligns with Laravel’s compatibility with Symfony components.
  • CI/CD integration: Supports deterministic SMS testing in pipelines (e.g., GitHub Actions), ensuring SMS notifications are validated as part of automated workflows without relying on flaky real SMS gateways.

When to Consider This Package

Adopt if:

  • Your Laravel application uses Symfony Notifier or is open to integrating it for SMS functionality.
  • SMS features are critical to your roadmap (e.g., 2FA, transactional alerts, or customer support escalations) but require iterative testing.
  • Your team lacks dedicated QA for SMS flows or relies on manual testing, increasing the risk of production bugs.
  • You need to simulate international SMS (e.g., testing carrier-specific behaviors like encoding or delivery delays).
  • Your CI/CD pipeline requires fast, repeatable SMS testing (e.g., validating SMS templates or retry logic).
  • You want to reduce SMS carrier costs during development without sacrificing functionality.
  • Your team is already familiar with Symfony’s Notifier component or willing to adopt it for this use case.

Avoid if:

  • Your application is not using Symfony Notifier and integrating it would introduce significant complexity (e.g., dependency conflicts or architectural changes).
  • You need real SMS delivery in development (e.g., for user acceptance testing or end-to-end workflow validation).
  • Your SMS logic is trivial (e.g., one-off scripts where mocking isn’t justified by the overhead).
  • You’re building a serverless or edge-compute application where dependency injection isn’t feasible.
  • Your SMS provider offers a free sandbox or mocking solution (e.g., Twilio Sandbox) that meets your needs without additional dependencies.
  • Your team prefers Laravel-native solutions and is unwilling to adopt Symfony components for this specific use case.

How to Pitch It (Stakeholders)

For Executives:

"This package allows us to develop and test SMS features—like two-factor authentication or transactional alerts—without incurring SMS carrier costs during development. For example, if we’re building a new fraud prevention system with SMS notifications, this could save us $5,000–$10,000 per month in carrier fees while we iterate. It also reduces risk by catching SMS logic bugs early, before they hit production. Think of it as ‘debugging SMS without paying for it’—we’ll see messages in our email or logs instead of sending them to real phones."

Key Outcomes:

  • Faster feature delivery: Test SMS flows in minutes, not days.
  • Lower costs: No surprise bills from SMS gateways during development.
  • Higher quality: Catch edge cases (e.g., character limits, encoding) before launch.
  • Scalable testing: Validate SMS templates, retry logic, and international formats without carrier constraints.

Ask: "Should we enable this for our next SMS-heavy feature to cut costs and reduce risk?"


For Engineers:

*"This is a zero-config SMS mock for Laravel (via Symfony Notifier) that lets you:

  • Route SMS to email (e.g., FAKE_SMS_DSN=fakesms+email://default?to=dev-team@example.com) to see messages in your inbox.
  • Log SMS to stdout for CI/CD pipelines or debugging.
  • Simulate failures (e.g., test retry logic) without touching real carriers.

Why it’s better than alternatives:

  • No setup: Just add the DSN to .env.
  • Symfony-native: Uses the same Notifier API as production (if you’re already using Symfony components).
  • Extensible: Swap email/logger backends (e.g., Slack, custom handlers).

Example workflow:

// In dev: SMS goes to your email.
$notifier->sendSms(
    new PhoneNumber('+1234567890'),
    'Your code: 123456'
);

// In prod: Uses Twilio/other provider.

Integration Notes:

  • Requires Symfony Notifier (symfony/notifier), which may add ~50+ dependencies.
  • For pure Laravel, you’ll need a custom bridge (e.g., extending Illuminate\Notifications\Notification) to integrate with Laravel’s Notification system.
  • Works best if you’re already using Symfony components or willing to adopt them for this use case.

Ask: "Should we enable this for the next sprint to cut dev costs and improve SMS testing?"


For Product Managers/Designers:

*"This tool ensures that SMS features—like password resets, shipping alerts, or appointment reminders—are tested thoroughly before launch. Instead of guessing whether an SMS will work as intended, we’ll see every message in our email or logs during development. This means:

  • No surprises in production: Catch formatting, content, or encoding issues early.
  • Faster iterations: Test multiple SMS templates or workflows without carrier costs.
  • Better collaboration: QA and designers can review SMS content alongside the rest of the feature.

Example use cases:

  • Validating OTP messages for security features.
  • Testing transactional alerts (e.g., order confirmations, payment failures).
  • Ensuring SMS templates render correctly across devices and carriers.

Ask: "Does this align with our goals for SMS feature reliability and speed?"

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle