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

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bigpaulie/yii2-fancybox
=======================

Yii2 FancyBox extension

1.0.0(11y ago)01.1kMITPHPPHP &gt;=5.4.0

Since May 1Pushed 11y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (2)Used By (0)

yii2-fancybox
=============

[](#yii2-fancybox)

Yii2 FancyBox 2 extension

FancyBox is a tool that offers a nice and elegant way to add zooming functionality for images, html content and multi-media on your webpages. It is built on the top of the popular JavaScript framework jQuery and is both easy to implement and a snap to customize.

Form more information on how to use FancyBox please go to their website

Install
-------

[](#install)

The preferred way of installing is through composer

```
    composer require --prefer-dist bigpaulie/yii2-fancybox "dev-master"

```

OR add to composer.json

```
    "bigpaulie/yii2-fancybox": "dev-master"

```

Example usage :
---------------

[](#example-usage-)

```
    use bigpaulie\fancybox\FancyBox;
```

### Images

[](#images)

```
    echo FancyBox::widget([
        'type' => 'image',
        'item' => [
            'href' => 'url_to_thumbnail',
            'src' => 'url_to_big_image',
        ],
    ]);
```

### Inline content

[](#inline-content)

```
    echo FancyBox::widget([
        'type' => 'inline',
        'item' => [
            'href' => '#myInline',
            'text' => 'click here',
        ],
    ]);
```

```
    This is my inline content !
```

### Ajax

[](#ajax)

```
    echo FancyBox::widget([
        'type' => 'ajax',
        'item' => [
            'href' => 'http://example.com/ajax.php',
            'text' => 'click here',
        ],
    ]);
```

#### OR

[](#or)

```
    echo FancyBox::widget([
        'type' => 'ajax',
        'item' => [
            'href' => Url::to(['site/ajax']),
            'text' => 'click here',
        ],
    ]);
```

### Media

[](#media)

```
    echo FancyBox::widget([
        'type' => 'media',
        'item' => [
            'href' => 'https://www.youtube.com/watch?v=YE7VzlLtp-4',
            'text' => 'click here',
        ],
        'clientOptions' => [
            'helpers' => [
                'media' => true,
            ],
        ],
    ]);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4036d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1706d209e8e01305b6823045fac6d363e149abd14a4bd20397d237ea1107a2b4?d=identicon)[bigpaulie](/maintainers/bigpaulie)

---

Top Contributors

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

---

Tags

yii2extensionwidgetfancybox

### Embed Badge

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

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

###  Alternatives

[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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