Yii2 simpleApp with Yii2 admin, user, AdminLTE and few more
This is a pre-configured Yii2 app with UserProfile with RBAC package.
I have created a yii2 package with RBAC, UserProfile and few more features. Most projects might be need these features. Therefore, I am making it available for all. You may download that from
Yii2 Simple Installation
1. Clone or download the GitHub repo and extract it in your webroot.
2. Install the scripts simply by one 2 words command
If you have any issue with composer, please check this post to fix that- Composer and php environment variable fix
3. Create a Database named yii2simple or as your preferred and update the config in
4. Run all DB migration simply by
yii migrate/up --migrationPath=@vendor/azraf/yii2-simpleapp/migrations/initials
You have all set! Now try it.
To run update, open command prompt or terminal, go to the project directory, and run
composer update. All repository will be updated.
POST INSTALLATION TASK
1. uncomment the line
'as access' => [ 'class' => 'mdm\admin\components\AccessControl', 'allowActions' => [ // 'admin/*', // ::: IMPORTANT :::: Make it disable after configuring the USER Roles/Permissions
2. Then browse to
http://[YOUR-APPLICATION-PATH]/index.php/admin/ in your browser
3. Configure Yii2-admin as your need, set Permission/Roles and assign them to User
4. After configuration complete, comment out the line again in your configuration
// 'admin/*', // ::: IMPORTANT :::: Make it disable after configuring the USER Roles/Permissions
Now you all set!
Status and Related Resource Links
Status: DONE, works well with Yii2-admin
GitHub repo: https://github.com/dektrium/yii2-user
Status: DONE, works well with Yii2-user
GitHub repo: https://github.com/mdmsoft/yii2-admin
Status: DONE. This package contains some migration scripts that simplify the setup process and some extending core classes to add extra methods to controllers.
GitHub repo: https://github.com/azraf/yii2-simpleapp
Status: Not published yet, fixing some JS conflicts.
GitHub repo: https://github.com/almasaeed2010/AdminLTE
I will come with detailed guideline.
Yii2-simple GITHub Repo
Hope you all have enjoyed it. 🙂
Leave a Reply
You must be logged in to post a comment.