PHPackages                             dajjwwx/yii2-masonry - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dajjwwx/yii2-masonry

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

dajjwwx/yii2-masonry
====================

Masonry Yii2 Extension width infinitescroll

00PHP

Since Jun 25Pushed 1y agoCompare

[ Source](https://github.com/dajjwwx/yii2-masonry)[ Packagist](https://packagist.org/packages/dajjwwx/yii2-masonry)[ RSS](/packages/dajjwwx-yii2-masonry/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-masonry
============

[](#yii2-masonry)

Masonry Yii2 Extension width infinitescroll

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist dajjwwx/yii2-masonry "*"

```

or add

```
"dajjwwx/yii2-masonry": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

Controller action:

```
function actionIndex()
{
    $query = Article::find()->where(['status' => 1]);
    $countQuery = clone $query;
    $pages = new Pagination(['totalCount' => $countQuery->count()]);
    $models = $query->offset($pages->offset)
        ->limit($pages->limit)
        ->all();

    return $this->render('index', [
         'models' => $models,
         'pages' => $pages,
    ]);
}

```

View:

```
\dajjwwx\masonry\Masonry::begin([
        'options' => [
          'id' => 'models'
        ],
        'pagination' => $pages
    ]);
	foreach ($models as $model) {
	    // display $model here
	}
\dajjwwx\masonry\Masonry::end();

```

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6535913?v=4)[dajjwwx](/maintainers/dajjwwx)[@dajjwwx](https://github.com/dajjwwx)

### Embed Badge

![Health badge](/badges/dajjwwx-yii2-masonry/health.svg)

```
[![Health](https://phpackages.com/badges/dajjwwx-yii2-masonry/health.svg)](https://phpackages.com/packages/dajjwwx-yii2-masonry)
```

###  Alternatives

[symfony/polyfill-php73

Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions

2.4k602.0M85](/packages/symfony-polyfill-php73)[beacon-hq/bag

A comprehensive immutable value objects implementation

18314.4k4](/packages/beacon-hq-bag)[shish/microhtml

A minimal HTML generating library

1148.6k3](/packages/shish-microhtml)[selvinortiz/doxter

Slick markdown editor and smart text parser.

249.0k](/packages/selvinortiz-doxter)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
