uomocon / materialize
Materialize CSS extension for the Yii framework
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.6.0
- npm-asset/materialize-css: 1.0.0
- yiisoft/yii2: ~2.0.0
README
This package integrates the Materialize CSS framework into Yii2. Materialize is a modern responsive front-end framework based on Material Design.
See official documentation for detailed information.
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require uomocon/materialize "*"
or add
"uomocon/materialize": "*"
to the require
section of your composer.json
file.
Usage
To load the Materialize CSS files integrate the MaterializeAsset into your app. Two ways to achieve this is to register the asset in the main layout:
// @app/views/layouts/main.php \uomocon\materialize\assets\MaterializeAsset::register($this); // further code
or as a dependency in your app wide AppAsset.php
// @app/assets/AppAsset.php public $depends = [ 'uomocon\materialize\assets\MaterializeAsset', // more dependencies ];