altiore/yii2-materialize

The Materialize extension for the Yii framework

Installs: 96

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0

Type:yii2-extension

1.1.0 2016-05-01 18:33 UTC

This package is not auto-updated.

Last update: 2024-12-13 19:06:49 UTC


README

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.

Installation

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,  
    ];  
}

Usage

For example, the following single line of code in a view file would render a Materialize Progress plugin:

<?= altiore\materialize\Progress::widget(['percent' => 70]) ?>