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

1.1.1 2021-01-21 17:05 UTC

This package is auto-updated.

Last update: 2024-09-22 01:31:34 UTC


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