PHPackages                             gearmagicru/gm-wd-lightgallery - 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. gearmagicru/gm-wd-lightgallery

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

gearmagicru/gm-wd-lightgallery
==============================

Website widget "LightGallery"

1.0.0(1y ago)0901MITPHP

Since Feb 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/gearmagicru/gm-wd-lightgallery)[ Packagist](https://packagist.org/packages/gearmagicru/gm-wd-lightgallery)[ Docs](https://apps.gearmagic.ru/component/gm-wd-lightgallery)[ RSS](/packages/gearmagicru-gm-wd-lightgallery/feed)WikiDiscussions main Synced 1mo ago

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

[![](https://raw.githubusercontent.com/gearmagicru/gm-wd-lightgallery/refs/heads/main/assets/images/icon.svg)](https://raw.githubusercontent.com/gearmagicru/gm-wd-lightgallery/refs/heads/main/assets/images/icon.svg) Виджет галереи "LightGallery"
=====================================================================================================================================================================================================================================================

[](#-виджет-галереи-lightgallery)

[![Latest Stable Version](https://camo.githubusercontent.com/cdfeaab1d16b2702f16ef3c602486b8ec5a4d789849bbc1576ff957b12ace4f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f676561726d6167696372752f676d2d77642d6c6967687467616c6c6572792e737667)](https://packagist.org/packages/gearmagicru/gm-wd-lightgallery)[![Total Downloads](https://camo.githubusercontent.com/b98a319e3104208f6bc0be10c1a0630382515e88ad91ce4a904b613c101fe862/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f676561726d6167696372752f676d2d77642d6c6967687467616c6c6572792e737667)](https://packagist.org/packages/gearmagicru/gm-wd-lightgallery)[![Author](https://camo.githubusercontent.com/1e128b2774d1a07cf7c785b38bb5be0ffef3ad5ca311313eab6a71836847f37d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d616e746f6e2e7469766f6e656e6b6f40676d61696c2e636f6d2d626c75652e737667)](mailto:anton.tivonenko@gmail)[![Source Code](https://camo.githubusercontent.com/a00ab22be1e35d6e2bbc5c88457a532fb083330083072ebeeebd452ffcecf812/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d676561726d6167696372752f676d2d2d77642d2d6c6967687467616c6c6572792d626c75652e737667)](https://github.com/gearmagicru/gm-wd-lightgallery)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](https://github.com/gearmagicru/gm-wd-lightgallery/blob/master/LICENSE)[![Component type: widget](https://camo.githubusercontent.com/6ca275a42bd52c6bc56a3bd73e05479efe20bd0be5815291a0a0672d8d933f08/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6d706f6e656e74253230747970652d7769646765742d677265656e2e737667)](https://camo.githubusercontent.com/6ca275a42bd52c6bc56a3bd73e05479efe20bd0be5815291a0a0672d8d933f08/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6d706f6e656e74253230747970652d7769646765742d677265656e2e737667)[![Component ID: gm-wd-lightgallery](https://camo.githubusercontent.com/dff64cf2172ba12ef8d00d5549479282fae5b22072b3fcc9b2a970502dce7e97/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6d706f6e656e7425323069642d676d2e77642e6c6967687467616c6c6572792d677265656e2e737667)](https://camo.githubusercontent.com/dff64cf2172ba12ef8d00d5549479282fae5b22072b3fcc9b2a970502dce7e97/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6d706f6e656e7425323069642d676d2e77642e6c6967687467616c6c6572792d677265656e2e737667)[![php 8.2+](https://camo.githubusercontent.com/b9650bc67fbe9468d5b9a9c0e738f8a492d477c26dd975407624353da58cbaf9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d6d696e253230382e322d7265642e737667)](https://camo.githubusercontent.com/b9650bc67fbe9468d5b9a9c0e738f8a492d477c26dd975407624353da58cbaf9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d6d696e253230382e322d7265642e737667)

Виджет предназначен для вывода и просмотра изображений на странице сайта с помощью лайтбокса "LightGallery".

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

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

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

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

```
$gallery = Gm::$app->widgets->get(
    'gm.wd.lightgallery',
    ['galleryId' => 1, 'sort' => 'index', limit' => 10, 'settings' => ['download' => false]]
);
$gallery->run();

```

### c шорткодом:

[](#c-шорткодом)

```
echo $this->shortcode('[lightgallery id="1" sort="index" limit="10" download="false"]');

```

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

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

```
echo $this->widget('gm.wd.lightgallery', [
    'galleryId'  => 1,
    'mode'       => 'list',
    'sort'       => ['default' => 'index,a'],
    'pagination' => ['defaultLimit' => 20],
    'pager'      => [
        'itemTpl'       => '{link}',
        'activeItemTpl' => '{link}',
        'options'       => ['class' => 'justify-content-center']
     ],
     'settings' => ['download' => false]
]);

```

### с namespace:

[](#с-namespace)

```
use Gm\Widget\LightGallery\Widget as Gallery;
echo Gallery::widget(['mode' => 'list', pagination' => ['defaultLimit' => 20]]);

```

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

```
Gm::$loader->addPsr4('Gm\Widget\LightGallery\\', Gm::$app->modulePath . '/gm/gm.wd.lightgallery/src');

```

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

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

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

```
$ composer require gearmagicru/gm-wd-lightgallery

```

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

```
"require": {
    "gearmagicru/gm-wd-lightgallery": "*"
}

```

После добавления виджета в проект, воспользуйтесь Панелью управления GM Panel для установки его в редакцию вашего веб-приложения.

Ресурсы
-------

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

- [Сайт LightGallery](https://www.lightgalleryjs.com/)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance43

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

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

451d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2595c7831b74dd41ac7454687fcceb0381bb2e16fc47a41427f7d1176e806d5e?d=identicon)[gearmagic](/maintainers/gearmagic)

---

Top Contributors

[![gearmagicru-ti](https://avatars.githubusercontent.com/u/93121899?v=4)](https://github.com/gearmagicru-ti "gearmagicru-ti (19 commits)")

---

Tags

modulegallerygearmagicgm-componentgm-panelgm-module

### Embed Badge

![Health badge](/badges/gearmagicru-gm-wd-lightgallery/health.svg)

```
[![Health](https://phpackages.com/badges/gearmagicru-gm-wd-lightgallery/health.svg)](https://phpackages.com/packages/gearmagicru-gm-wd-lightgallery)
```

PHPackages © 2026

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