dmgpage/yii2-materialize

Integration of Material Design into Yii2

Installs: 33

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 1

Open Issues: 0

Type:yii2-extension

dev-master 2024-01-08 19:20 UTC

This package is auto-updated.

Last update: 2024-11-08 21:03:03 UTC


README

Materialize Extension for Yii 2


Build Status Scrutinizer Code Quality Yii2 license

This is the Materialize CSS framework extensions for Yii framework 2.0. Materialize is a modern responsive CSS framework based on Material Design by Google.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist dmgpage/yii2-materialize:dev-master

or add

"dmgpage/yii2-materialize": "dev-master"

to the require section of your composer.json file.

Usage

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.

  1. Grid
  2. Blockquotes
  3. Badges
  4. Icons
  5. Buttons
  6. Waves
  7. Breadcrumbs
  8. Card
  9. Tabs
  10. Collections
  11. Forms

License

yii2-materialize is released under the BSD-3-Clause License. See the bundled LICENSE.md for details.