PHPackages                             notgosu/yii2-meta-tag-module - 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. [Templating &amp; Views](/categories/templating)
4. /
5. notgosu/yii2-meta-tag-module

ActiveYii2-extension[Templating &amp; Views](/categories/templating)

notgosu/yii2-meta-tag-module
============================

Yii2 meta tag module for creating and setting meta tags for your site

1.0.0(11y ago)43.3k↓12.5%9[1 issues](https://github.com/notgosu/yii2-meta-tag-module/issues)2MITPHP

Since Mar 27Pushed 8y agoCompare

[ Source](https://github.com/notgosu/yii2-meta-tag-module)[ Packagist](https://packagist.org/packages/notgosu/yii2-meta-tag-module)[ Docs](https://github.com/notgosu/yii2-meta-tag-module)[ RSS](/packages/notgosu-yii2-meta-tag-module/feed)WikiDiscussions master Synced 1mo ago

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

Yii2 meta tag module
====================

[](#yii2-meta-tag-module)

This module allow to create dynamic meta tags and fulfil them at any model.

Install
-------

[](#install)

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

Either run

```
$ php composer.phar require --prefer-dist notgosu/yii2-meta-tag-module "dev-master"
```

or add

```
"notgosu/yii2-meta-tag-module": "dev-master"
```

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

Apply module migrations:

```
./yii migrate --migrationPath=@vendor/notgosu/yii2-meta-tag-module/src/migrations
```

Usage
-----

[](#usage)

### Connect behavior to required model:

[](#connect-behavior-to-required-model)

```
     public function behaviors()
     {
         return [
             //some other behaviors
             'seo' => [
                 'class' => \notgosu\yii2\modules\metaTag\components\MetaTagBehavior::className(),
                 'languages' => ['en', 'ua', 'ru'],
                 //'defaultFieldForTitle' => 'label'
             ]
         ];
     }
```

### Use widget to fulfil meta tags:

[](#use-widget-to-fulfil-meta-tags)

```
echo \notgosu\yii2\modules\metaTag\widgets\metaTagForm\Widget::widget(['model' => $model])
```

where `$model` is instance of your AR model.

### To add new tags or edit existing add module to your `modules` section of your main.php:

[](#to-add-new-tags-or-edit-existing-add-module-to-your-modules-section-of-your-mainphp)

```
 'modules' => [
        //Some other modules
        'seo' => [
            'class' => \notgosu\yii2\modules\metaTag\Module::className()
        ]
    ],
```

and go to .

### To register meta tags for certain AR model, simply call:

[](#to-register-meta-tags-for-certain-ar-model-simply-call)

```
 \notgosu\yii2\modules\metaTag\components\MetaTagRegister::register($model, Yii::$app->language);
```

from certain view or controller.

Contributing
------------

[](#contributing)

If you find any bug/issue, please submit new issue or pull-request. Any advices are welcome!

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~0 days

Total

2

Last Release

4071d ago

Major Versions

0.1.0 → 1.0.02015-03-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2412202?v=4)[Pavel Naumenko](/maintainers/notgosu)[@notgosu](https://github.com/notgosu)

---

Top Contributors

[![notgosu](https://avatars.githubusercontent.com/u/2412202?v=4)](https://github.com/notgosu "notgosu (26 commits)")[![hanterrian](https://avatars.githubusercontent.com/u/3724093?v=4)](https://github.com/hanterrian "hanterrian (14 commits)")[![MetalGuardian](https://avatars.githubusercontent.com/u/1168520?v=4)](https://github.com/MetalGuardian "MetalGuardian (14 commits)")[![a-bilyi](https://avatars.githubusercontent.com/u/8568800?v=4)](https://github.com/a-bilyi "a-bilyi (8 commits)")[![athl64](https://avatars.githubusercontent.com/u/4989972?v=4)](https://github.com/athl64 "athl64 (3 commits)")

---

Tags

yii2seometa tag

### Embed Badge

![Health badge](/badges/notgosu-yii2-meta-tag-module/health.svg)

```
[![Health](https://phpackages.com/badges/notgosu-yii2-meta-tag-module/health.svg)](https://phpackages.com/packages/notgosu-yii2-meta-tag-module)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[ogheo/yii2-htmlcompress

Compress HTML output into a single line

20184.4k1](/packages/ogheo-yii2-htmlcompress)[marqu3s/yii2-summernote

Yii2 Summernote widget. Super simple WYSIWYG editor on Bootstrap

1691.6k8](/packages/marqu3s-yii2-summernote)[zxbodya/yii2-tinymce

Yii2 extension to use TinyMce with Compressor and FileManager

1732.1k3](/packages/zxbodya-yii2-tinymce)

PHPackages © 2026

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