Download the PHP package ricar2ce/yii2-material-theme without Composer
On this page you can find all versions of the php package ricar2ce/yii2-material-theme. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yii2-material-theme
Yii2 Material Theme
Material UI for Yii2 Framework, based on Creative Tim Material Dashboard
Material Dashboard is a free Material Bootstrap Admin with a fresh, new design inspired by Google's Material Design. We are very excited to introduce our take on the material concepts through an easy to use and beautiful set of components. Material Dashboard was built over the popular Bootstrap framework and it comes with a couple of third-party plugins redesigned to fit in with the rest of the elements.
Material Dashboard makes use of light, surface and movement. The general layout resembles sheets of paper following multiple different layers, so that the depth and order is obvious. The navigation stays mainly on the left sidebar and the content is on the right inside the main panel.
This product came as a result of users asking for a material dashboard after we released our successful Material Kit. We developed it based on your feedback and it is a powerful bootstrap admin dashboard, which allows you to build products like admin panels, content managements systems and CRMs.
Material Dashboard comes with 5 color filter choices for both the sidebar and the card headers (blue, green, orange, red and purple) and an option to have a background image on the sidebar.
Material Dashboard uses a framework built by our friend Federico - Bootstrap Material Design, who did an amazing job creating the backbone for the material effects, animations, ripples and transitions. Big thanks to his team for the effort and forward thinking they put into it.
Special thanks go to:
- Julio C. Ramos for yii2-material-dashboard,
- sanpyaelin for yii2-material-dashboard,
- Robert McIntosh for the notification system,
- Chartist for the wonderful charts,
- Creative Tim for the marvelous theme.
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Quick Start
Once the extension is installed, you can have a preview by reconfiguring the path mappings of the view component:
Or in your layouts/main.php include followin code for use de assets
Don't forget to remove
'yii\bootstrap\BootstrapAsset'
and'yii\bootstrap\BootstrapPluginAsset'
frombackend\asset\AppAsset
(advence) orapp\asset\AppAsset
(basic)
Customization
- Copy files from
vendor/ricar2ce/yii2-material-theme/view
-
Remove the custom
view
configuration from your application by entered the new path mappings, if you have made them before.
Web-font usage
This extension use the fallowing depend for the font icons usage:
- Nick Tsai yii2-fontawesome
- Andrey Izman yii2-material-design-icons
Config template
Default config.
You can change it in config file.
or
using bundled assets
Sidebar menu - Widget Menu
create menu.php in common\models
(advence) or app\models
(basic) if you configuring the path mappings of the view component
example:
By default to icons will be added prefix of Material Icon
Notification : Noti widget
This is the Noti widget and Yii 2 enhanced wrapper for the Bootstrap Notify plugin
Usage
Add widget to your layout/main
:
Noti widget renders a message from session flash. All flash messages are displayed in the sequence they were assigned using setFlash. You can set message as following:
Set the message in your action, for example:
Also, you can set multiple messages as follows:
Render message without the session flash
===============
TO DO
- [ ] [widgets] add more widgets for material template.
License
- Copyright 2017 Creative Tim
- Licensed under MIT
All versions of yii2-material-theme with dependencies
yiisoft/yii2 Version ~2.0.14
yiisoft/yii2-bootstrap Version ~2.0.0
yidas/yii2-fontawesome Version ^4.0
mervick/yii2-material-design-icons Version ~1.0