PHPackages                             salimkamboh/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. [Image &amp; Media](/categories/media)
4. /
5. salimkamboh/yii2-lightbox

ActiveYii2-extension[Image &amp; Media](/categories/media)

salimkamboh/yii2-lightbox
=========================

Yii2 LightBox image gallery is some ammendment to SlavKoVrn/yii-lighbox

v1.0.3(2y ago)0213BSD-3-ClauseJavaScript

Since Jun 10Pushed 2y agoCompare

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

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

LightBox image galary widget for Yii2 Framework uses jQuery Lightbox v2.10.0 by Lokesh Dhakar
=============================================================================================

[](#lightbox-image-galary-widget-for-yii2-framework-uses-jquery-lightbox-v2100-by-lokesh-dhakar)

The extension uses jQuery Lightbox v2.10.0 by Lokesh Dhakar and makes image galary from php array of structure defined.

[LightBox image galary PHP Array generator](http://yii2.kadastrcard.ru/lightbox).

[![LightBox image galary](https://camo.githubusercontent.com/b901db187722961fd355e4000ab1c57ab10431a4588c2ed0a27e91b89457638b/687474703a2f2f796969322e6b616461737472636172642e72752f75706c6f6164732f6c69676874626f782e6a7067)](https://camo.githubusercontent.com/b901db187722961fd355e4000ab1c57ab10431a4588c2ed0a27e91b89457638b/687474703a2f2f796969322e6b616461737472636172642e72752f75706c6f6164732f6c69676874626f782e6a7067)

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

[](#installation)

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

Either run:

```
composer require salimkamboh/yii2-lightbox
```

or add

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

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

Usage
-----

[](#usage)

Set link to extension in your view:

```
use kartik\grid\GridView;
use salimkamboh\lightbox\LightBoxWidget;

echo GridView::widget([
    'dataProvider' => $dataProvider,
    'columns' => [
        [
            'header' => 'Pictures',
            'content' => function ($data){
                $images = [               // images at popup window of prettyPhoto galary
                    1 => [
                            'src' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image1.jpg',
                            'thumb' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image1.jpg',
                            'title' => 'Image visible in widget',
                        ],
                    2 => [
                            'src' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image2.jpg',
                            'thumb' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image2.jpg',
                            'title' => 'image 1',
                        ],
                    3 => [
                            'src' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image3.jpg',
                            'thumb' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image3.jpg',
                            'title' => 'image 2',
                        ],
                    4 => [
                            'src' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image4.jpg',
                            'thumb' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image4.jpg',
                            'title' => 'image 3',
                        ],
                ];
                return LightBoxWidget::widget([
                    'id'     =>'lightbox',  // id of plugin should be unique at page
                    'class'  =>'galary',    // class of plugin to define style
                    'height' =>'100px',     // height of image visible in widget
                    'width' =>'100px',      // width of image visible in widget
                    'images' => $images,
                ]);
            }
        ],
    ],
]);
```

[write comments to admin](mailto:salimkamboh@gmail.com)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

1068d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8cc63d32c35aabf3a25a7d191935fa60db4b6d8126acab9bb70bfb3362702c95?d=identicon)[salimkamboh](/maintainers/salimkamboh)

---

Top Contributors

[![salimkamboh](https://avatars.githubusercontent.com/u/4237021?v=4)](https://github.com/salimkamboh "salimkamboh (5 commits)")[![SlavKoVrn](https://avatars.githubusercontent.com/u/30201456?v=4)](https://github.com/SlavKoVrn "SlavKoVrn (5 commits)")

---

Tags

yii2yii 2Image galary widgetjQuery Lightbox v2.10.0 by Lokesh Dhakar

### Embed Badge

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

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

###  Alternatives

[trntv/yii2-glide

Yii2 Glide Extension

41269.5k9](/packages/trntv-yii2-glide)[maxmirazh33/yii2-uploadable-cropable-image

Yii2 extension for upload and crop images

1020.8k](/packages/maxmirazh33-yii2-uploadable-cropable-image)[developit/yii2-jcrop

 yii2 image cropping extension

101.5k](/packages/developit-yii2-jcrop)

PHPackages © 2026

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