PHPackages                             chrisb34/yii2-lazyload - 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. chrisb34/yii2-lazyload

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

chrisb34/yii2-lazyload
======================

Yii2 helper to lazy load images and/or to convert image captions into div markups (like wordpress)

384JavaScript

Since Jul 11Pushed 8y ago2 watchersCompare

[ Source](https://github.com/chrisb34/yii2-lazyload)[ Packagist](https://packagist.org/packages/chrisb34/yii2-lazyload)[ RSS](/packages/chrisb34-yii2-lazyload/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Lazy Load images and apply captions
===================================

[](#lazy-load-images-and-apply-captions)

Yii2 helper to lazy load images and/or to convert image captions into div markups (like wordpress)

\*Note: This project is still in DEV and is therefore not fully tested / stable

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist chrisb34/yii2-lazyload "*"

```

or add

```
"chrisb34/yii2-lazyload": "*"

```

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

Usage
-----

[](#usage)

In a view add the lazyload widget as follows;

```
use chrisb34/lazyload;

echo LazyLoad::widget([
        // the data model
        'model' => $model
        // the model attribute that holds the html to convert
        'contentProperty' => 'attributeName',

        ... other config options - see source code
    ])
```

see  for more details

- Thanks to

This uses the jquery plugins:

Lazy Load Plugin for jQuery - Mika Tuupola

jCaption: jQuery Image Captions with Customizable Markup, Style and Animation - Joel Sutherland

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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/4489938?v=4)[Chris Backhouse](/maintainers/chrisb34)[@chrisb34](https://github.com/chrisb34)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/chrisb34-yii2-lazyload/health.svg)

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

PHPackages © 2026

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