Materialize Extension for Yii 2
The preferred way to install this extension is through composer.
php composer.phar require --prefer-dist dmgpage/yii2-materialize:dev-master
to the require section of your
To use Materialize CSS extensions in your app, integrate MaterializePluginAsset. There is two ways how to achieve this. Register the asset in the main layout:
// @app/views/layouts/main.php \dmgpage\yii2materialize\assets\MaterializePluginAsset::register($this); // further code
or as a dependency in your app wide AppAsset.php
// @app/assets/AppAsset.php public $depends = [ 'dmgpage\yii2materialize\assets\MaterializePluginAsset', // more dependencies ];
Using Materialize through Yii asset manager allows you to minimize its resources and combine with your own resources when needed.
yii2-materialize is released under the BSD-3-Clause License. See the bundled
LICENSE.md for details.