PHPackages                             rosgear/rg-wd-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. rosgear/rg-wd-fancybox

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

rosgear/rg-wd-fancybox
======================

Frontend widget "Fancybox" for the RosGear web application

1.0(6d ago)00MITPHP

Since Jun 13Pushed yesterdayCompare

[ Source](https://github.com/rosgear/rg-wd-fancybox)[ Packagist](https://packagist.org/packages/rosgear/rg-wd-fancybox)[ Docs](https://rosgear.ru/component/rg-wd-fancybox/)[ RSS](/packages/rosgear-rg-wd-fancybox/feed)WikiDiscussions main Synced today

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

[Русский](#%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9) | [English](#english)

---

[![Latest Stable Version](https://camo.githubusercontent.com/f42c74a64ea0929636fdd95355c64021dbd548a040eb0217fa6bde6f7e5ceeb1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f73676561722f72672d77642d66616e6379626f782e737667)](https://packagist.org/packages/rosgear/rg-wd-fancybox)[![Total Downloads](https://camo.githubusercontent.com/300eb8a054afdc66cb051a67895a6d70d696a4b7aeca3d7c206d22d3ba634c46/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f73676561722f72672d77642d66616e6379626f782e737667)](https://packagist.org/packages/rosgear/rg-wd-fancybox)[![Author](https://camo.githubusercontent.com/1e128b2774d1a07cf7c785b38bb5be0ffef3ad5ca311313eab6a71836847f37d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d616e746f6e2e7469766f6e656e6b6f40676d61696c2e636f6d2d626c75652e737667)](mailto:anton.tivonenko@gmail)[![Source Code](https://camo.githubusercontent.com/efebb0d00e3de321bb62e8270d8ba525ac955a273202287ea308b56930c660d3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d726f73676561722f72672d2d77642d2d66616e6379626f782d626c75652e737667)](https://github.com/rosgear/rg-wd-fancybox)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](https://github.com/rosgear/rg-wd-fancybox/blob/main/LICENSE)[![Component type: widget](https://camo.githubusercontent.com/6ca275a42bd52c6bc56a3bd73e05479efe20bd0be5815291a0a0672d8d933f08/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6d706f6e656e74253230747970652d7769646765742d677265656e2e737667)](https://camo.githubusercontent.com/6ca275a42bd52c6bc56a3bd73e05479efe20bd0be5815291a0a0672d8d933f08/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6d706f6e656e74253230747970652d7769646765742d677265656e2e737667)[![Component ID: rg-wd-fancybox](https://camo.githubusercontent.com/62b3bec372987ace682944f05d72c454e3f8f7b648523a94c28269eb851d2e89/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6d706f6e656e7425323069642d72672e77642e66616e6379626f782d677265656e2e737667)](https://camo.githubusercontent.com/62b3bec372987ace682944f05d72c454e3f8f7b648523a94c28269eb851d2e89/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6d706f6e656e7425323069642d72672e77642e66616e6379626f782d677265656e2e737667)[![php 8.2+](https://camo.githubusercontent.com/b9650bc67fbe9468d5b9a9c0e738f8a492d477c26dd975407624353da58cbaf9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d6d696e253230382e322d7265642e737667)](https://camo.githubusercontent.com/b9650bc67fbe9468d5b9a9c0e738f8a492d477c26dd975407624353da58cbaf9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d6d696e253230382e322d7265642e737667)

[![](https://raw.githubusercontent.com/rosgear/rg-wd-fancybox/refs/heads/main/assets/images/icon.svg)](https://raw.githubusercontent.com/rosgear/rg-wd-fancybox/refs/heads/main/assets/images/icon.svg) Виджет «Лайтбокс Fancybox»
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#-виджет-лайтбокс-fancybox)

Виджет использует JavaScript‑библиотеку Fancybox (лайтбокс), предназначенную для удобного отображения контента поверх текущей веб‑страницы.

Что умеет Fancybox:

- показывать изображения в увеличенном виде (по клику на миниатюру);
- воспроизводить видео (в т. ч. с YouTube и Vimeo);
- встраивать контент через iframe (например, страницы других сайтов);
- отображать HTML‑элементы прямо на странице (скрытые блоки, формы и т. д.);
- загружать контент через AJAX без перезагрузки страницы;
- организовывать изображения в галереи со слайдером (с навигацией стрелками, автопрокруткой и т. п.).

### Пример применения

[](#пример-применения)

#### с менеджером виджетов:

[](#с-менеджером-виджетов)

```
$lightbox = Ge::$app->widgets->get('rg.wd.fancybox', ['width' => 600, 'height' => 400]);
$lightbox->run();

```

#### в шаблоне:

[](#в-шаблоне)

```
$this->widget('rg.wd.fancybox', ['width' => 600, 'height' => 400])->run();

```

#### с namespace:

[](#с-namespace)

```
use Rg\Widget\Fancybox\Widget as Lightbox;
Lightbox::widget(['width' => 600, 'height' => 400])->run();

```

если namespace ранее не добавлен в PSR, необходимо выполнить:

```
Ge::$loader->addPsr4('Rg\Widget\Fancybox\\', Ge::$app->modulePath . '/rg/rg.wd.fancybox/src');

```

### Установка

[](#установка)

Для добавления виджета в ваш проект, вы можете просто выполнить команду ниже:

```
$ composer require rosgear/rg-wd-fancybox

```

или добавить в файл composer.json вашего проекта:

```
"require": {
    "rosgear/rg-wd-fancybox": "*"
}

```

или скачать архив на [странице виджета](https://rosgear.ru/component/rg-wd-fancybox/) в каталоге приложений RosGear.

После добавления виджета в проект выполните его установку в редакцию веб‑приложения с помощью Панели управления GePanel.

### Ресурсы

[](#ресурсы)

- [Старая версия Fancybox](http://fancybox.net/)
- [UI компонент Fancybox](https://fancyapps.com/fancybox/)

[![](https://raw.githubusercontent.com/rosgear/rg-wd-fancybox/refs/heads/main/assets/images/icon.svg)](https://raw.githubusercontent.com/rosgear/rg-wd-fancybox/refs/heads/main/assets/images/icon.svg) Widget «Fancybox lightbox»
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#-widget-fancybox-lightbox)

The widget uses the Fancybox JavaScript library (lightbox), which is designed to conveniently display content on top of the current web page.

What Fancybox can do:

- display enlarged images (by clicking on the thumbnail);
- play videos (including from YouTube and Vimeo);
- embed content via iframe (e.g., pages from other websites);
- display HTML elements directly on the page (hidden blocks, forms, etc.);
- load content via AJAX without reloading the page;
- organize images into galleries with a slider (with arrow navigation, auto-scrolling, etc.).

### Installation

[](#installation)

To add the widget to your project, you can simply run the command below:

```
$ composer require rosgear/rg-wd-fancybox

```

or add to your project's composer.json file:

```
"require": {
    "rosgear/rg-wd-fancybox": "*"
}

```

or download the archive from the [widget page](https://rosgear.ru/component/rg-wd-fancybox/) in the RosGear application catalog.

After adding the widget to the project, install it into the web application edition using the GePanel Control Panel.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity33

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

6d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/da606e9ab44bbc24872d12cbb07126db07bddd2efa693614484e2936467628e2?d=identicon)[antonius-ti](/maintainers/antonius-ti)

---

Top Contributors

[![antonius-ti](https://avatars.githubusercontent.com/u/287449617?v=4)](https://github.com/antonius-ti "antonius-ti (20 commits)")

---

Tags

cmswidgetrosgear

### Embed Badge

![Health badge](/badges/rosgear-rg-wd-fancybox/health.svg)

```
[![Health](https://phpackages.com/badges/rosgear-rg-wd-fancybox/health.svg)](https://phpackages.com/packages/rosgear-rg-wd-fancybox)
```

PHPackages © 2026

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