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. dajjwwx/yii2-masonry

ActiveYii2-extension

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

Masonry Yii2 Extension width infinitescroll

00PHP

Since Jun 25Pushed 10mo 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 1mo ago

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 2% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity14

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://www.gravatar.com/avatar/755a918c5e16855fb9ef7de63f499fb5343b74a2536e951d5fabb1ef8d3c1c70?d=identicon)[dajjwwx](/maintainers/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)
```

PHPackages © 2026

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