Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
AdminLTE Asset Bundle for Backend Theme in Yii2 Framework

Light Bootstrap Dashboard is an admin dashboard template designed to be beautiful and simple.
yii2-adminlte-asset is a Composer-installable asset bundle for the Yii 2.0 Framework that registers the CSS of the AdminLTE backend UI theme and ships example views, letting PHP developers spin up an admin dashboard without writing the front-end from scratch.
yii2-adminlte-asset is an asset bundle maintained by dmstr, the team behind the Yii2-based phd5 application, and is distributed through Packagist with over a thousand GitHub stars. It wraps the AdminLTE theme (versions 1 and 2) so that Yii 2.0 Advanced and Basic application templates can load the theme's CSS through Yii's asset manager, and it provides example layout and view files under the example-views/yiisoft/yii2-app directory. The bundle takes advantage of Yii's theme pathMap configuration to remap default views to AdminLTE-styled views, and it requires the fxp/composer-asset-plugin v1.1.1 or later for installation.
composer require dmstr/yii2-adminlte-asset "^2.1" or AdminLTE v1 with the ^1 constraint, matching the compatibility matrix that maps bundle versions to AdminLTE 2.0–2.4 and Font Awesome requirements.pathMap in your application config to immediately preview the theme, with ready-made examples for both the Advanced/Basic templates and the phd5 app.examples/ folder that are meant to be copied into your application and customized, not edited inside vendor/.beginBlock('content-header') and the breadcrumbs parameter to render AdminLTE's native header HTML like About <small>static page</small>.header option, icon prefixes such as far for Font Awesome Free, and HTML badges on items.adminlte template in your Gii module config to generate CRUD views styled with AdminLTE from the gii/templates/crud/simple directory.vendor/almasaeed2010/adminlte/plugins; create a custom AdminLtePluginAsset bundle that depends on AdminLteAsset to load only the plugins you need.tests/ folder provides a docker-compose setup to run the bundle in a containerized Yii2 test application.pathMap configuration to your existing Yii2 app, then copy the example views into your project as the starting point.AdminLteAsset and list only the plugin CSS/JS files your page needs, keeping payloads smaller than loading the whole plugin directory.composer require dmstr/yii2-adminlte-asset "^2.1").'theme' => ['pathMap' => ['@app/views' => '@vendor/dmstr/yii2-adminlte-asset/example-views/yiisoft/yii2-app']]).@app/views, remove the pathMap, and edit your views using AdminLTE's HTML markup.No. AdminLTE dropped web-font inclusion in version 2.4.0, so you must add a font like Source Sans Pro yourself, for example via a Google Fonts link. The bundle's own FAQ recommends adjusting the font to your project's asset-bundling workflow for production.
According to the compatibility matrix, bundle version 2.4 works with AdminLTE 2.0–2.3 and requires Font Awesome; version 2.5 works with AdminLTE 2.4 and requires Font Awesome; version 3.0 works with AdminLTE 2.4 and has no Font Awesome dependency (because icons are handled differently).
No. The main AdminLteAsset only registers the core theme CSS. Plugin files such as Chart.js are available in the vendor directory, but you need to create a custom asset bundle that depends on AdminLteAsset and lists the specific plugin files you want.
The example views in the vendor/ folder are not meant to be edited directly. Copy them from example-views/yiisoft/yii2-app into your application's @app/views directory, then remove the temporary pathMap configuration and customize the copied files.
Check the AdminLTE upgrade guide linked from the bundle's documentation, and review the compatibility matrix to ensure your asset bundle and Font Awesome versions still match. The GitHub issues section also tracks known installation problems, such as the DmitryBaranovskiy/eve.git issue.