Weave 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
Layout Bundle

Layout Bundle Laravel Package

funwithsymfony/layout-bundle

A Symfony bundle from FunWithSymfony that provides layout helpers for organizing page templates and view structure. It helps integrate consistent, reusable layouts into Symfony applications, making front-end scaffolding simpler to build and maintain.

View on GitHub
Deep Wiki
Context7

Provides layout management for your Symfony 2 project. Compatible with Twig

Frequently asked questions about Layout Bundle
Is funwithsymfony/layout-bundle a Laravel package?
No. It is a Symfony 2 bundle built for AppKernel registration, Symfony's dependency injection container, and TwigBundle's templating layer. There is no Laravel service provider, facade, or auto-discovery shim in the package. If you found it while searching for a Laravel layout or theme package, it is a category mismatch.
Can I install funwithsymfony/layout-bundle in a Laravel application with Composer?
Realistically no. The bundle expects Symfony 2.x components, an AppKernel-style bundle registration, and a Twig 1.x templating stack, so its dependency tree will not resolve against a modern Laravel install running on PHP 8.1 or newer. Even if you force resolution by pinning an end-of-life runtime, nothing wires the bundle into Laravel's container or boot lifecycle. Treat installation as unsupported rather than merely untested.
Does funwithsymfony/layout-bundle work with Laravel Blade templates?
No. The bundle manages layouts through Symfony's templating and Twig extension system, and it has no Blade compiler directives, view finders, or Blade-compatible rendering path. Blade's own @extends, @section, and @include hierarchy already covers the same layout inheritance concept natively. Porting the bundle would mean rewriting its rendering layer, not configuring it.
What does funwithsymfony/layout-bundle actually do?
It provides layout management for Symfony 2 projects: defining layout hierarchies, injecting reusable blocks or regions into templates, and switching themes without duplicating Twig templates. The core idea is a resolution chain that selects a layout or theme from request context with fallbacks to a default. The published description is thin, so the exact semantics of fallback ordering and region definition should be confirmed by reading the source before relying on them.
Which Symfony and PHP versions does funwithsymfony/layout-bundle support?
It targets Symfony 2.x, a generation that reached end of life in 2019 with 2.8 LTS ending in November 2018, and its supported PHP range sits well below the PHP 8.1+ floor of current Laravel releases. Twig 1.x pinning is a second collision point, since Twig 1.x is itself end of life. On any current Laravel LTS the honest answer is that the package is incompatible.
Can I run funwithsymfony/layout-bundle in Laravel using rcrowe/twigbridge?
Twigbridge gives you the Twig template engine inside Laravel, but not Symfony bundle lifecycle, container semantics, or the extension registration this bundle depends on. You would still have to port the bundle's extension classes into a Laravel service provider and adapt its configuration loading. That is a port, not an integration, and it only makes sense if your team is already committed to Twig over Blade.
How do I implement layout hierarchies and theme switching natively in Laravel instead?
Map the resolution semantics onto supported Laravel primitives: namespaced view paths or a custom view finder for theme directories, a view composer or middleware to inject the active layout into shared view data, and config-driven fallback ordering such as requested theme, then tenant default, then application default. Blade's @extends and @section directives handle the inheritance and region injection the bundle provides. The result is typically a few hundred lines entirely within supported APIs, with no dead dependencies.
Is funwithsymfony/layout-bundle safe and maintained for production use?
There is little evidence of maintenance or production validation: one star, zero dependents, no issue history revealing failure modes, and no documented security disclosure process. The transitive Symfony 2 components are the sharper risk, since legacy code in that generation carries known vulnerabilities that will not be patched. With no downstream usage and no maintainer obligation to respond, a production dependency on it is hard to justify.
How much effort is it to replace this bundle's layout logic in Laravel?
Usually less than adapting it. The capability, layout selection, fallback resolution, and theme switching, is native Laravel territory already covered by Blade hierarchy, view composers, View::addNamespace, and custom view finders. Read the bundle source to capture its resolution rules as written requirements, then reimplement them against supported Laravel APIs. Adaptation cost exceeds reimplementation cost in nearly every case.
What license is funwithsymfony/layout-bundle under, and can I reuse its logic?
Check the LICENSE file in the repository before copying anything, since the reuse question depends on a permissive license such as MIT. If the license allows it, lifting the algorithmic pattern, a resolution chain that picks a layout or theme from request context with fallbacks, is the sensible move. Take the requirements into a native Laravel build rather than taking the dependency. Verify the license text yourself; do not assume a permissive default.
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.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect