Introduction
AdminLTE 4 for Symfony is the official Symfony bundle that brings the AdminLTE 4 admin template to your app as native Twig Components, an AssetMapper-first asset pipeline, a config-driven sidebar menu and SSR-safe dark mode.
The bundle wraps AdminLTE 4 (Bootstrap 5.3) in the way a Symfony developer expects: you extend a base Twig layout, define your sidebar in YAML, and drop <twig:Adminlte:*> components into your templates. There is no Webpack Encore requirement and no Node build step — the layout works from the jsDelivr CDN out of the box, with AssetMapper as the production path.
Key features
- Twig Components — 35+ typed, slot-aware components such as
<twig:Adminlte:Card>,<twig:Adminlte:SmallBox>and<twig:Adminlte:InfoBox>, mirroring the inventory of the Vue and React ports. - Config-driven sidebar menu — one array in
config/packages/admin_lte.yaml, with automatic active-route detection and an optional per-itempermissionsecurity filter. - SSR-safe dark mode — Bootstrap 5.3
data-bs-themeis set before the first paint (no flash of incorrect theme), persisted tolocalStorage, and follows the OS preference while onauto. - AssetMapper-first — zero-config CDN by default; compile assets locally with AssetMapper for production.
- Optional EasyAdmin theme — layer AdminLTE styling onto an existing EasyAdmin backend.
- Symfony-native — an
AbstractBundlewith autoconfigured services, PHP 8.4 strict types, PHPStan and php-cs-fixer.
Requirements
| Dependency | Version |
|---|---|
| PHP | 8.4+ |
| Symfony | 8.1+ |
| Bootstrap | 5.3 |
| EasyAdmin (optional) | 5.1+ |
Install in one line
composer require colorlibhq/adminlte-symfony
With Symfony Flex the bundle registers itself automatically. See the Installation page for manual registration and the AssetMapper production setup.
Links
- Live demo: adminlte-symfony.pages.dev
- Repository: github.com/ColorlibHQ/adminlte-symfony
- Packagist: colorlibhq/adminlte-symfony
- AdminLTE: adminlte.io
AdminLTE is available across many stacks — the same template is also offered as official ports for React/Next.js, Vue/Nuxt, Laravel, Django, Angular and ASP.NET Core.