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

ActiveYii2-extension

shiyang/yii2-masonry
====================

Masonry Yii2 Extension width infinitescroll

v1.0.1(11y ago)24494[1 issues](https://github.com/shi-yang/yii2-masonry/issues)MITPHP

Since May 2Pushed 11y ago1 watchersCompare

[ Source](https://github.com/shi-yang/yii2-masonry)[ Packagist](https://packagist.org/packages/shiyang/yii2-masonry)[ RSS](/packages/shiyang-yii2-masonry/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)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 shiyang/yii2-masonry "*"

```

or add

```
"shiyang/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:

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

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

4035d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b0a6500a47716bf8cb36b1dc92bb399f1e6dc97a80013808f52f66049d3549d3?d=identicon)[shiyang](/maintainers/shiyang)

---

Top Contributors

[![shi-yang](https://avatars.githubusercontent.com/u/5102567?v=4)](https://github.com/shi-yang "shi-yang (5 commits)")

---

Tags

yii2extensionmasonryinfinitescroll

### Embed Badge

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

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

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[philippfrenzel/yii2masonry

Yii2 Masonry Integration for Yii2

1316.3k](/packages/philippfrenzel-yii2masonry)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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