PHPackages                             kit-tools/yii2-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. kit-tools/yii2-tags

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

kit-tools/yii2-tags
===================

Tags extensions

1.0.6(1y ago)023↓66.7%BSD-3-ClausePHPPHP &gt;=7.1

Since Aug 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/kit-tools/yii2-tags)[ Packagist](https://packagist.org/packages/kit-tools/yii2-tags)[ RSS](/packages/kit-tools-yii2-tags/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (3)Versions (8)Used By (0)

Yii2-tags behavior
==================

[](#yii2-tags-behavior)

The extension allows you to add tags to different models. Counts the weight of tags and the number of clicks per tag for each model. There is also an admin panel for adding tags. And a few widgets to display tags.

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

[](#installation)

The preferred way to install this extension is through composer.

Either run:

`composer require kit-tools/yii2-tags`

or add

`"kit-tools/yii2-tags": "^1.0.0"`

to the require section of your composer.json file.

Usage
-----

[](#usage)

### Admin

[](#admin)

Add to config (config/main.php или config/web.php)

```
'controllerMap' => [
    'tag' => 'kittools\tags\controllers\TagController'
],
```

### Property $tagList

[](#property-taglist)

In the model with which you want to associate tags, add:

```
