PHPackages                             denar90/yii2-lazy-loading-module - 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. denar90/yii2-lazy-loading-module

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

denar90/yii2-lazy-loading-module
================================

Yii2 module for content lazy loading

21391PHP

Since Jan 5Pushed 11y ago1 watchersCompare

[ Source](https://github.com/denar90/yii2-lazy-loading-module)[ Packagist](https://packagist.org/packages/denar90/yii2-lazy-loading-module)[ RSS](/packages/denar90-yii2-lazy-loading-module/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (3)DependenciesVersions (2)Used By (0)

Lazy loading Module for Yii2
============================

[](#lazy-loading-module-for-yii2)

Yii2 module for content lazy loading

Main features:

- showing items mode. Probability to use both in backend and in frontend
- flexible module configuration

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

[](#installation)

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

- Either run

```
php composer.phar require --prefer-dist "denar90/yii2-lazy-loading-module": "dev-master"

```

or add

```
"denar90/yii2-lazy-loading-module": "dev-master"
```

to the require section of your application's `composer.json` file.

- Add a new module in `modules` section of your application's configuration file, for example:

```
'modules' => [
    'lazyloading' => [
		'class' => 'denar90\lazyloading\LazyLoading',
		'modelNamespace' => '\app\models\Items' \\ your model with items
	],
],
```

This configuration will show only list, without links on each item. Mode by default is 'list'.

- Mode 'view' configurations, for example:

```
'modules' => [
    'lazyloading' => [
		'class' => 'denar90\lazyloading\LazyLoading',
		'modelNamespace' => '\app\models\Items', \\ your model with items
		'mode' => 'edit',
		'additionalLinks' => [
			'view' => [
				'controller' => 'yourController',
				'action' => 'yourViewAction'
			]
		]
	],
],
```

- Mode 'edit' configurations, for example:

```
'modules' => [
    'lazyloading' => [
		'class' => 'denar90\lazyloading\LazyLoading',
		'modelNamespace' => '\app\models\Items', \\ your model with items
		'mode' => 'edit',
		'additionalLinks' => [
			'view' => [
				'controller' => 'yourController',
				'action' => 'yourViewAction'
			],
			'delete' => [
				'controller' => 'yourController',
				'action' => 'yourDeleteItemAction'
			]
		]
	],
],
```

Usage
-----

[](#usage)

In your action call module

For example:

```
...
 	public function actionIndex() {
		$lazyLoading = Yii::$app->getModule('lazyloading');
		return $lazyLoading->runAction('lazyloading/index');
	}
...
```

Also you should create method in your model for getting list of items. For example:

```
namespace app\models\Items;
...
 	public function getAllItems($limit = 10, $offset = 0) {
		return $this->find()->offset($offset)->limit($limit)->all();
	}
...
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6231516?v=4)[Artem Denysov](/maintainers/denar90)[@denar90](https://github.com/denar90)

---

Top Contributors

[![denar90](https://avatars.githubusercontent.com/u/6231516?v=4)](https://github.com/denar90 "denar90 (4 commits)")

### Embed Badge

![Health badge](/badges/denar90-yii2-lazy-loading-module/health.svg)

```
[![Health](https://phpackages.com/badges/denar90-yii2-lazy-loading-module/health.svg)](https://phpackages.com/packages/denar90-yii2-lazy-loading-module)
```

###  Alternatives

[akeneo-labs/custom-entity-bundle

Akeneo PIM Custom entity bundle

53103.7k8](/packages/akeneo-labs-custom-entity-bundle)[snowdog/module-alpaca-components

Components of the Alpaca theme for Magento 2

4583.4k2](/packages/snowdog-module-alpaca-components)

PHPackages © 2026

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