Skip to content

UomoCon/materialize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Materialize CSS for Yii2


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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages