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

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

gearmagicru/gm-wd-tags
======================

Site widget "List of objects associated with the tag"

1.0.0(1y ago)0901MITPHP

Since Feb 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/gearmagicru/gm-wd-tags)[ Packagist](https://packagist.org/packages/gearmagicru/gm-wd-tags)[ Docs](https://apps.gearmagic.ru/component/gm-wd-tags)[ RSS](/packages/gearmagicru-gm-wd-tags/feed)WikiDiscussions master Synced today

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

[![](https://raw.githubusercontent.com/gearmagicru/gm-wd-tags/refs/heads/master/assets/images/icon.svg)](https://raw.githubusercontent.com/gearmagicru/gm-wd-tags/refs/heads/master/assets/images/icon.svg) Виджет "Список объектов связанных с меткой"
=======================================================================================================================================================================================================================================================

[](#-виджет-список-объектов-связанных-с-меткой)

Виджет предназначен для вывода списка объектов из базы данных по указанной метки (тегу) с параметрами.

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

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

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

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

```
$list = Gm::$app->widgets->get('gm.wd.tags',  ['sort' => 'date', limit' => 10]);
$list->run();

```

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

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

```
$this->widget('gm.wd.tags', [
    'mode'       => 'list',
    'sort'       => ['default' => 'date,a'],
    'pagination' => ['defaultLimit' => 20],
    'itemsView'  => '/partials/tag-items',
    'pager'      => [
        'itemTpl'       => '{link}',
        'activeItemTpl' => '{link}',
        'options'       => ['class' => 'justify-content-center']
    ]
]);

```

### с namespace:

[](#с-namespace)

```
use Gm\Widget\Tags\Widget as List;
echo List::widget(['mode' => 'list', pagination' => ['limit' => 20]]);

```

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

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

```

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

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

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

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

```

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

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

```

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

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance40

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity38

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

512d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/49327798?v=4)[gearmagic](/maintainers/gearmagic)[@gearmagic](https://github.com/gearmagic)

---

Top Contributors

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

---

Tags

widgettagssitegmgearmagic

### Embed Badge

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

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

###  Alternatives

[sjaakp/yii2-taggable

Manage tags of ActiveRecord in Yii2.

2932.6k](/packages/sjaakp-yii2-taggable)

PHPackages © 2026

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