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-item permission security filter.
  • SSR-safe dark mode — Bootstrap 5.3 data-bs-theme is set before the first paint (no flash of incorrect theme), persisted to localStorage, and follows the OS preference while on auto.
  • 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 AbstractBundle with autoconfigured services, PHP 8.4 strict types, PHPStan and php-cs-fixer.

Requirements

DependencyVersion
PHP8.4+
Symfony8.1+
Bootstrap5.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

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.


AdminLTE 4 · Symfony port Edit on GitHub