cinghie/yii2-masonry

Asset Bundle to include Masonry on your Yii 2 project

Installs: 234

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.2 2023-04-10 10:06 UTC

This package is auto-updated.

Last update: 2024-03-10 12:04:29 UTC


README

License Latest Stable Version Latest Release Date Latest Commit Total Downloads

Asset Bundle to include Masonry on your Yii 2 project: https://github.com/desandro/masonry

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require cinghie/yii2-masonry "^1.0.2"

or add this line to the require section of your composer.json file.

"cinghie/yii2-masonry": "^1.0.2"

Configuration

Add in the view for normal CSS and JS

use cinghie\masonry\MasonryAsset;

MasonryAsset::register($this);

Add in the view for minify CSS and JS

use cinghie\masonry\MasonryMinifyAsset;

MasonryMinifyAsset::register($this);