webtoolsnz / yii2-admin-lte
Yii2 Integration kit for Admin LTE theme
Installs: 3 885
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 14
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- almasaeed2010/adminlte: 2.3.3
- fortawesome/font-awesome: ^4.6
- yiisoft/yii2: ^2.0.7
- yiisoft/yii2-bootstrap: *
Requires (Dev)
- phpdocumentor/reflection-docblock: ^2.0
- phpunit/phpunit: ^4.7.7
- symfony/css-selector: ^2.8
- symfony/dom-crawler: ^2.8
README
Yii2 Integration kit for AdminLTE theme
The purpose of this project is to allow easy integration of the popular bootstrap theme AdminLTE for any Yii2 based applications.
!["AdminLTE Presentation"] (http://i.imgur.com/YOyqDPa.png "AdminLTE Presentation")
Installation
Install webtoolsnz/yii2-admin-lte
using Composer.
$ composer require webtoolsnz/yii2-admin-lte
Getting started
This packages consists of a Theme and a set of widgets, each can be used independently of the other.
You can just use the widgets and completely ignore the theme component of this package, check the documentation for each individual widget below.
Available Widgets
- Box
- InfoBox
- ProgressInfoBox
- Alert
- Callout
- Menu
- GridBox
- FlashMessages
Theme
Getting started with the Theme is really simple just the components section of your web application config with the following
[ ... 'components' => [ 'view' => [ 'theme' => [ 'class' => \webtoolsnz\AdminLte\Theme::className(), ] ] ] ... ]
If you have any layout files named main.php
those will need to be removed or renamed, as they will override the provided layout files, read more about theme configuration
Testing
This project has a PHPUnit test suite. To run the tests, run the following command from the project folder.
$ composer test
License
The MIT License (MIT). Please see LICENSE for more information.