PHPackages                             ramzyvirani/yii2-lightbox - 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. ramzyvirani/yii2-lightbox

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

ramzyvirani/yii2-lightbox
=========================

Lightbox widget for Yii2

1.1(10y ago)0412Apache-2.0PHP

Since Oct 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/RamzyVirani/yii2-lightbox)[ Packagist](https://packagist.org/packages/ramzyvirani/yii2-lightbox)[ RSS](/packages/ramzyvirani-yii2-lightbox/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Lightbox Widget for Yii 2
=========================

[](#lightbox-widget-for-yii-2)

- Lightbox widget based on Lightbox2 extension

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist ramzyvirani/yii2-lightbox "*"

```

or add

```
"ramzyvirani/yii2-lightbox": "*"
```

to the require section of your composer.json.

Usage
-----

[](#usage)

Once the extension is installed, simply add widget to your page as follows:

```
echo Lightbox::widget([
    'files' => [
        [
            'thumb' => 'url/to/thumb.ext',
            'original' => 'url/to/original.ext',
            'title' => 'optional title',
        ],
    ]
]);
```

To add html options you can use below syntax

```
echo Lightbox::widget([
    'files' => [
        [
            'thumb' => [
                'src'=>'url/to/thumb.ext',
                'htmlOptions' => ['class'=>'col-md-12', 'alt'=>'Alternate Text'] // These options will be applied to Image tag.
            ],
            'original' => [
                'src' => 'url/to/original.ext',
            ]
            'title' => 'optional title',
        ],
    ]
]);
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

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 ~3 days

Total

2

Last Release

3865d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/030d8a2b101d8dd634ce38ef5f9b1eaeb5cde45fdea7fe68d35553ecc80abebf?d=identicon)[RamzyVirani](/maintainers/RamzyVirani)

---

Top Contributors

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

---

Tags

lightboxphpwidgetyii2yii2module

### Embed Badge

![Health badge](/badges/ramzyvirani-yii2-lightbox/health.svg)

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

###  Alternatives

[branchonline/yii2-lightbox

Lightbox widget for Yii2

13139.0k1](/packages/branchonline-yii2-lightbox)[akiraz2/yii2-ticket-support

Yii2 Support Ticket Module, easy, flexible, fast

611.7k](/packages/akiraz2-yii2-ticket-support)

PHPackages © 2026

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