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
Framework Bundle

Framework Bundle Laravel Package

symfony/framework-bundle

Symfony FrameworkBundle tightly integrates Symfony components into the full-stack framework, providing core framework services and configuration. Part of the main Symfony repository; see official docs for contributing, issues, and pull requests.

View on GitHub
Deep Wiki
Context7

Provides a tight integration between Symfony components and the Symfony full-stack framework

Frequently asked questions about Framework Bundle
Can I use Symfony FrameworkBundle in a Laravel project?
No, FrameworkBundle is designed exclusively for Symfony’s full-stack framework. It tightly couples Symfony’s HttpKernel, DependencyInjection, and EventDispatcher, which are fundamentally incompatible with Laravel’s modular architecture. Laravel already has its own service container, routing, and event systems, so FrameworkBundle would require significant rewrites to integrate.
What Symfony components *can* I use in Laravel instead of FrameworkBundle?
Individual Symfony components like `symfony/mailer`, `symfony/http-client`, or `symfony/messenger` can be integrated into Laravel via Composer. For example, you can replace Laravel’s Mail facade with Symfony’s Mailer by binding it in a service provider. However, FrameworkBundle itself—being a monolithic glue layer—cannot be used directly in Laravel.
Will Symfony FrameworkBundle v8.0.9 resolve Laravel compatibility issues?
No, this release introduces no architectural changes to address Laravel’s needs. Bug fixes (e.g., Mailer package checks, translation domain handling) are internal to Symfony and irrelevant to Laravel’s email stack (e.g., `laravel/mail`) or localization systems. The core conflicts—like container and routing—remain unresolved.
How do I integrate Symfony’s Mailer component into Laravel?
Install `symfony/mailer` via Composer, then bind it in Laravel’s `AppServiceProvider` using the `MailerInterface`. Replace Laravel’s `Mail::send()` calls with Symfony’s `Mailer` instance. This avoids FrameworkBundle entirely while leveraging Symfony’s email capabilities. Documentation for this approach is available in Symfony’s [Mailer component guide](https://symfony.com/doc/current/mailer.html).
Are there Laravel packages that replicate Symfony’s features without FrameworkBundle?
Yes. For example, `spatie/laravel-messenger` adapts Symfony’s Messenger component for Laravel, and `spatie/laravel-mail` provides a Laravel-native email solution. These packages abstract Symfony’s logic into Laravel’s ecosystem, eliminating the need for FrameworkBundle. Always check Packagist for Laravel-specific alternatives before adopting Symfony components directly.
What Laravel version does Symfony FrameworkBundle support?
FrameworkBundle does not support Laravel at all—it’s built for Symfony’s framework. If you’re using Symfony components in Laravel (e.g., `symfony/mailer`), ensure they meet Laravel’s PHP version requirements (currently PHP 8.1+ for Laravel 10.x). FrameworkBundle itself has no role in Laravel’s version compatibility.
How would I test Symfony components in a Laravel project?
Test individual Symfony components (e.g., `symfony/http-client`) in isolation using PHPUnit or Pest. Mock Laravel’s service container if needed, but avoid testing FrameworkBundle directly. For example, test Symfony’s Mailer by creating a standalone PHPUnit test case with a `Mailer` instance, then integrate it into Laravel’s container separately.
What are the performance implications of using Symfony components in Laravel?
Symfony components like `symfony/http-client` or `symfony/mailer` can improve performance for specific tasks (e.g., HTTP requests, email sending) compared to Laravel’s built-in solutions. However, FrameworkBundle adds no performance benefits to Laravel and may introduce overhead if misused. Always benchmark components in your Laravel environment before adoption.
Can I use Symfony FrameworkBundle in a hybrid Symfony/Laravel app?
No, FrameworkBundle cannot be shared between Symfony and Laravel due to architectural conflicts. Instead, use a microservice approach: deploy Symfony for backend services (e.g., API Platform) and Laravel for frontend logic (Livewire/Blade). Communicate between them via APIs (e.g., Laravel Sanctum + Symfony API tokens) or message queues (Symfony Messenger + Laravel Queues).
What maintenance overhead does Symfony FrameworkBundle add to a Laravel project?
Zero—FrameworkBundle cannot be used in Laravel. However, integrating individual Symfony components (e.g., `symfony/mailer`) requires maintaining dual expertise in both ecosystems. Ensure your team can handle updates to both Symfony components *and* Laravel dependencies. Use tools like `composer why-not` to audit dependency conflicts.
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.
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
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai