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
Easy Sms Bundle

Easy Sms Bundle Laravel Package

akanunov/easy-sms-bundle

View on GitHub
Deep Wiki
Context7

At a glance

Frequently asked questions about Easy Sms Bundle
Can I use this bundle directly in vanilla Laravel without Symfony?
No, this bundle requires Symfony components like `AppKernel` and dependency injection, which don’t work natively in Laravel. For vanilla Laravel, use `overtrue/easy-sms` directly or create a custom wrapper via a facade or service provider.
What SMS gateways does this bundle support?
The bundle supports all gateways available in `overtrue/easy-sms`, including Aliyun, Twilio, AWS SNS, and more. Configuration is handled via Symfony’s YAML setup, but you can adapt it for Laravel’s `.env` or `config/` files.
How do I install and configure this for Laravel?
Install via Composer (`composer require akanunov/easy-sms-bundle`), but note it requires Symfony’s `AppKernel`. For Laravel, bypass the bundle and use `overtrue/easy-sms` directly with a service provider or facade for cleaner integration.
Is this bundle actively maintained? Should I use it for production?
The bundle has no recent updates or stars, indicating low maintenance. For production, consider `overtrue/easy-sms` standalone or alternatives like `laravel-notification-channels/sms`, which are more Laravel-native and actively maintained.
How do I handle multiple SMS gateways with failover logic?
The underlying `overtrue/easy-sms` library supports multi-gateway setups. Configure fallback gateways in the YAML (or Laravel’s config) and use retry logic in your service layer. Example: Define a primary gateway and secondary in the `default.gateways` array.
Will this work with Laravel 10+? Any compatibility issues?
This bundle targets Symfony 5.4–7.4, which may conflict with Laravel 10’s updated dependencies. For Laravel 10, use `overtrue/easy-sms` directly or check for newer Symfony-compatible Laravel bridges like Spatie’s integration.
How do I test SMS functionality before deploying to production?
Use mock gateways or sandbox environments (e.g., Twilio’s sandbox). For `overtrue/easy-sms`, configure a test gateway in your `.env` and write unit tests using Laravel’s `Mockery` or PHPUnit to verify SMS sending logic without real API calls.
Are there better Laravel-native alternatives to this bundle?
Yes. For Laravel, consider `laravel-notification-channels/sms` (official channel driver) or `spatie/laravel-sms` for simpler, Laravel-optimized SMS integration. These avoid Symfony dependencies entirely.
How do I migrate from this bundle to a Laravel-native solution?
Replace the bundle with `overtrue/easy-sms` directly. Move YAML configs to Laravel’s `config/sms.php` and wrap the library in a service provider. Example: Bind `EasySmsFactory` as a singleton and inject it where needed.
Can I use this bundle in Lumen (Symfony-based Laravel)?
Yes, Lumen’s Symfony compatibility makes this bundle a viable option. Follow the standard Symfony bundle setup, but ensure your Lumen kernel (`bootstrap/app.php`) loads the bundle correctly in the `registerBundles()` method.
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.
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
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