bengor-user/swift-mailer-bridge-bundle
UserBundle and SwiftMailerBridge, making it a partial fit for Laravel ecosystems unless abstracted via a facade or middleware layer. Laravel’s authentication (e.g., Laravel Fortify, Sanctum) and mail systems (e.g., Laravel Mail) are incompatible without significant refactoring.symfony/mailer).Auth with SwiftMailer via a service provider), but not a drop-in solution.UserBundle (e.g., UserManager, UserProvider) to Laravel’s Illuminate\Auth and Illuminate\Contracts\Auth. SwiftMailer’s transport layer would need to be wrapped in a Laravel-compatible service.Mail facade or symfony/mailer (via spatie/laravel-symfony-mailer) may offer better compatibility with minimal refactoring.bind() in AppServiceProvider).Mail or symfony/mailer?UserBundle to work with Laravel’s auth system?SwiftMailerBridge while using Laravel’s Auth for user resolution.Illuminate\Auth\Events\Registered) to trigger SwiftMailer-based emails, bypassing UserBundle.symfony/mailer (Laravel-compatible) and adapt the bundle’s logic.Mail/symfony/mailer for the use case (e.g., transactional emails, templates).MailManager).UserManager) with Laravel equivalents (e.g., Auth::user()).App\Services\SwiftMailerBridge).symfony/mailer, the bundle’s SwiftMailer-specific logic would need rewrites.Illuminate\Mail\Transport\* or queue-based mailers.| Phase | Task | Owner | Dependencies |
|---|---|---|---|
| Discovery | Document current mail/auth workflows. | PM/Dev | None |
| POC | Build a SwiftMailer-Laravel adapter for 1 email type. | Backend Dev | Laravel Mail, SwiftMailer |
| Architecture | Design a decoupled bridge (e.g., event listeners + service layer). | TPM/Architect | POC results |
| Integration | Replace UserBundle logic with Laravel Auth equivalents. |
Backend Dev | Architecture review |
| Testing | Validate with PHPSpec → PHPUnit, adapt to Laravel’s testing tools. | QA/Dev | Integration code |
| Deprecation | Plan sunset for SwiftMailer in favor of symfony/mailer. |
TPM/Dev | Migration timeline |
symfony/mailer.UserBundle docs, which may not align with Laravel’s auth system.Mail::later()).| Risk | Impact | Mitigation Strategy |
|---|---|---|
| SwiftMailer Deprecation | Forced rewrite to symfony/mailer. |
Adopt symfony/mailer in parallel; deprecate SwiftMailer. |
| Symfony 2.x CVEs | Security vulnerabilities. | Isolate SwiftMailer in a Docker container; monitor CVE databases. |
| Laravel Auth Incompatibility | Broken user resolution. | Use event listeners (Auth::attempting) to bridge data. |
| Queue vs. Sync Mail Conflicts | Email delivery delays. | Implement a hybrid system (SwiftMailer for legacy, Laravel Mail for new). |
UserBundle, SwiftMailer’s transport layer, and Laravel’s service container.UserManager to Laravel’s Guard system.How can I help you explore Laravel packages today?