cinghie / yii2-masonry
Asset Bundle to include Masonry on your Yii 2 project
Installs: 244
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/jquery-masonry: ^4.2.2
- yiisoft/yii2: ^2.0.14
Requires (Dev)
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2024-11-10 13:38:08 UTC
README
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);