This is the Materialize extension for Yii 2. It encapsulates Materialize components and plugins in terms of Yii widgets, and thus makes using Materialize components/plugins in Yii applications extremely easy.
Initially this extension forked by repository webmaxx/yii2-materialize
For license information check the LICENSE-file.
The preferred way to install this extension is through composer.
Either run
php composer.phar require altiore/yii2-materialize
or add
"altiore/yii2-materialize": "@stable"
to the require section of your composer.json
file.
Do not forget to add depending into your AssetBundle file. For example:
<?php
class AppAsset extends AssetBundle
{
public $depends = [
\altiore\materialize\MaterializeAsset::class,
];
}
For example, the following single line of code in a view file would render a Materialize Progress plugin:
<?= altiore\materialize\Progress::widget(['percent' => 70]) ?>