PHPackages                             slavkovrn/yii2-fancybox - 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. slavkovrn/yii2-fancybox

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

slavkovrn/yii2-fancybox
=======================

Yii2 FancyBox image galary widget uses fancyBox v2.1.5 by Janis Skarnelis

088CSS

Since Mar 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/SlavKoVrn/yii2-fancybox)[ Packagist](https://packagist.org/packages/slavkovrn/yii2-fancybox)[ RSS](/packages/slavkovrn-yii2-fancybox/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 FancyBox image galary widget uses fancyBox v2.1.5 by Janis Skarnelis
=========================================================================

[](#yii2-fancybox-image-galary-widget-uses-fancybox-v215-by-janis-skarnelis)

The extension uses jQuery fancyBox v2.1.5 by Janis Skarnelis and makes image galary from php array of structure defined.

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

[![FancyBox image galary](https://camo.githubusercontent.com/d4974330b9564e3b709974e7bc69b1efe5250aecd5b68c4783d34bc5ca41342d/687474703a2f2f796969322e6b616461737472636172642e72752f75706c6f6164732f66616e6379626f782e706e67)](https://camo.githubusercontent.com/d4974330b9564e3b709974e7bc69b1efe5250aecd5b68c4783d34bc5ca41342d/687474703a2f2f796969322e6b616461737472636172642e72752f75706c6f6164732f66616e6379626f782e706e67)

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

[](#installation)

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

Either run:

```
composer require slavkovrn/yii2-fancybox
```

or add

```
"slavkovrn/yii2-fancybox": "*"
```

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

Usage
-----

[](#usage)

Set link to extension in your view:

```
use kartik\grid\GridView;
use slavkovrn\fancybox\FancyBoxWidget;

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',
                            'title' => 'Image visible in widget',
                        ],
                    2 => [
                            'src' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image2.jpg',
                            'title' => 'image 1',
                        ],
                    3 => [
                            'src' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image3.jpg',
                            'title' => 'image 2',
                        ],
                    4 => [
                            'src' => 'http://yii2.kadastrcard.ru/uploads/prettyphoto/image4.jpg',
                            'title' => 'image 3',
                        ],
                ];
                return FancyBoxWidget::widget([
                    'id'     =>'fancybox',  // id of plugin should be unique at page
                    'class'  =>'fancybox',    // 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:slavko.chita@gmail.com)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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/30201456?v=4)[SlavKoVrn](/maintainers/slavkovrn)[@SlavKoVrn](https://github.com/SlavKoVrn)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/slavkovrn-yii2-fancybox/health.svg)

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

PHPackages © 2026

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