Download the PHP package colorlibhq/adminlte-symfony without Composer
On this page you can find all versions of the php package colorlibhq/adminlte-symfony. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download colorlibhq/adminlte-symfony
More information about colorlibhq/adminlte-symfony
Files in colorlibhq/adminlte-symfony
Package adminlte-symfony
Short Description Official AdminLTE 4 integration for Symfony β Bootstrap 5.3, AssetMapper, Twig Components, config-driven sidebar menu, dark mode, and an optional EasyAdmin theme.
License MIT
Homepage https://adminlte.io
Informations about the package adminlte-symfony
AdminLTE everywhere
Features
- π§© Twig Components β
<twig:Adminlte:Card>,<twig:Adminlte:SmallBox>, β¦ typed, documented, slot-aware. - π§ Config-driven sidebar menu β one array in
config/packages/adminlte.yaml, with automatic active-route detection and per-item security (permission). - π SSR-safe dark mode β Bootstrap 5.3
data-bs-theme, set before first paint (no flash), persisted tolocalStorage, follows the OS while onauto. - β‘ AssetMapper-first β no Webpack Encore, no Node build required. CDN works out of the box; AssetMapper is the production path.
- ποΈ Optional EasyAdmin theme β layer AdminLTE styling onto your EasyAdmin backend.
- π§± Symfony-native β
AbstractBundle, autoconfigured services, PHP 8.4, strict types, PHPStan + php-cs-fixer.
Requirements
| PHP | 8.4+ |
| Symfony | 8.1+ (also 7.4 LTS once stabilised) |
| EasyAdmin (optional) | 5.1+ |
Installation
With Symfony Flex the bundle is registered automatically. Otherwise add it to config/bundles.php:
Configuration
Create config/packages/admin_lte.yaml (Symfony underscores the bundle name, so the config key is admin_lte):
Menu item keys: label, header, route, route_params, url, target, icon, badge, badge_class, permission, children.
Usage
Extend the layout from any page (this is the Symfony-idiomatic equivalent of the other ports' DashboardLayout):
A complete example lives in templates/demo/dashboard.html.twig. Wire it up:
Components (35+)
Layout β Sidebar, SidebarNavItem (recursive), Topbar, Footer, ColorModeToggle. The dashboard layout itself is {% extends '@AdminLte/layout.html.twig' %}.
Widgets β Card, SmallBox, InfoBox, Alert, Callout, Progress, ProgressGroup, Timeline + TimelineItem, ProfileCard, DescriptionBlock, Breadcrumb, Ratings, Toast, Modal, Accordion + AccordionItem, Tabs, NavNotifications, NavMessages, NavTasks, CommandPalette (βK).
Forms β Button, Input, Select, Textarea, InputSwitch, InputColor, InputFile.
Every component is a Twig Component:
This matches the component inventory of the Vue/React ports. A few heavy plugin wrappers (charts, datatables, rich editors) remain optional add-ons.
Dark mode
The <head> script in _color_mode_script.html.twig sets data-bs-theme before the body paints (no flash), persists the choice to localStorage, and tracks the OS preference while on auto. <twig:Adminlte:ColorModeToggle /> flips it via the exposed window.adminlteToggleColorMode(). A Stimulus alternative ships in assets/controllers/color-mode_controller.js.
Production assets (AssetMapper)
The CDN links in the layout's stylesheets/javascripts blocks make the bundle work with zero config. For production, serve assets locally:
Then override the layout blocks in your base template to emit {{ importmap('app') }} instead of the CDN tags.
EasyAdmin theme
Layer AdminLTE onto an existing EasyAdmin backend. Either copy the shipped override into your app:
β¦or load the assets from your DashboardController:
Note: this is an initial integration that applies AdminLTE styling to EasyAdmin's own layout. A fully restructured AdminLTE shell (sidebar/topbar/config menu) for EasyAdmin is being rolled out incrementally.
Development
License
MIT Β© Colorlib & AdminLTE contributors.
All versions of adminlte-symfony with dependencies
symfony/framework-bundle Version ^8.1
symfony/twig-bundle Version ^8.1
symfony/asset Version ^8.1
symfony/asset-mapper Version ^8.1
symfony/config Version ^8.1
symfony/dependency-injection Version ^8.1
symfony/http-kernel Version ^8.1
symfony/stimulus-bundle Version ^2.30 || ^3.0
symfony/ux-twig-component Version ^2.30 || ^3.0
twig/twig Version ^3.21