PHPackages                             open20/amos-tag - 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. open20/amos-tag

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

open20/amos-tag
===============

Sistema AMOS per le TAG

1.13.1(3mo ago)02574PHPPHP &gt;=5.4.0

Since Feb 22Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/regionelombardia-open20/open2-tag)[ Packagist](https://packagist.org/packages/open20/amos-tag)[ Docs](http://www.example.com/)[ RSS](/packages/open20-amos-tag/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (7)Versions (24)Used By (4)

\#Amos Tag

Extension for tags and interest areas.

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

[](#installation)

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

Either run

```
composer require open20/amos-tag
```

or add this row

```
"open20/amos-tag": "dev-master"

```

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

2. Add module to your main config in backend:

    ```
    'modules' => [
        'tag' => [
            'class' => 'open20\amos\tag\AmosTag',
            'modelsEnabled' => [
                /**
                 * Add here the classnames of the models for whose you want to enable tags
                 * (i.e. 'open20\amos\news\models\News')
                 */
            ]
        ],
    ],
    ```
3. To enable user-profile interest areas (tags to match with content tags), amos-cwh installation is needed
4. Apply migrations

    a. amos-tag migrations

    ```
    php yii migrate/up --migrationPath=@vendor/open20/amos-tag/src/migrations
    ```

    or add this row to your migrations config in console:

    ```
    return [
        .
        .
        .
        '@vendor/open20/amos-tag/src/migrations',
        .
        .
        .
    ];
    ```

Configuration
-------------

[](#configuration)

Tag management is available for admin role - url PlatformUrl **/tag/manager**. In tag manager it is possible to:

- To add new trees or tags
- enable tag trees (by root selection) for specific models - to all roles (rbac) or to the specified ones
- change tree settings eg. root visible will allow the user to select all tags by root in TagWidget (see below)

Widgets
-------

[](#widgets)

Amos Tag provides two Widgets:

- **TagWidget** *open20\\amos\\tag\\widgets\\TagWidget*
    Draws tag tree to select values for a model. example of use in a form:

```
    echo open20\amos\tag\widgets\TagWidget::widget([
        'model' => $model,
        'attribute' => 'tagValues',
        'form' => \yii\base\Widget::$stack[0],
        'singleFixedTreeId' => $treeRoot,
        'id' => 'third-tree',
        'hideHeader' => true
    ]);
```

In a search form you can use the same widget with options :

```
$params = \Yii::$app->request->getQueryParams();
echo \open20\amos\tag\widgets\TagWidget::widget([
    'model' => $model,
    'attribute' => 'tagValues',
    'form' => $form,
    'isSearch' => true,
    'form_values' => isset($params[$model->formName()]['tagValues']) ? $params[$model->formName()]['tagValues'] : []
]);
```

If singleFixedTreeId is not specified, all enabled trees for the $model are considered (table tag\_models\_auth\_items\_mm). singleFixedTreeId is now possible an array (tag roots in singleFixedTreeId will be considered).

- **ShowTagsWidget** *open20\\amos\\tag\\widgets\\ShowTagsWidget*
    Draws the selected tags for a model (in view mode). It is possible to specify a tree (property 'rootId') or a set of trees (property 'rootIdsArray') to show; if nothing is specified, all enabled trees for the model are considered. Example:

```

```

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance87

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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

Every ~211 days

Recently: every ~328 days

Total

13

Last Release

96d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6eb97765ff9c2a6c83df362376ac9fe8f21e4ac4c3b65fd1e2380233178fe500?d=identicon)[open2.0](/maintainers/open2.0)

---

Top Contributors

[![StefanoCavazzini](https://avatars.githubusercontent.com/u/27275250?v=4)](https://github.com/StefanoCavazzini "StefanoCavazzini (1 commits)")[![waltermazza](https://avatars.githubusercontent.com/u/46817459?v=4)](https://github.com/waltermazza "waltermazza (1 commits)")

---

Tags

yii2tagamos

### Embed Badge

![Health badge](/badges/open20-amos-tag/health.svg)

```
[![Health](https://phpackages.com/badges/open20-amos-tag/health.svg)](https://phpackages.com/packages/open20-amos-tag)
```

PHPackages © 2026

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