PHPackages                             pistol88/yii2-seo - 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. pistol88/yii2-seo

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

pistol88/yii2-seo
=================

Модуль позволяет привязывать SEO поля к моделям

61.4k5[2 PRs](https://github.com/pistol88/yii2-seo/pulls)1PHP

Since Apr 8Pushed 4y ago2 watchersCompare

[ Source](https://github.com/pistol88/yii2-seo)[ Packagist](https://packagist.org/packages/pistol88/yii2-seo)[ RSS](/packages/pistol88-yii2-seo/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (1)

Yii2-seo
========

[](#yii2-seo)

Модуль дает возможность быстро присвоить и быстро распаковать СЕО поля: титл, дескрипшн, кейвордс (ТДК) и т.д.

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

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

Выполнить команду

```
php composer require pistol88/yii2-seo "*"

```

Или добавить в composer.json

```
"pistol88/yii2-seo": "*",

```

И выполнить

```
php composer update

```

Миграция:

```
php yii migrate --migrationPath=vendor/pistol88/yii2-seo/migrations

```

Использование
-------------

[](#использование)

К модели подключить поведение:

```
    function behaviors()
    {
        return [
            'seo' => [
                'class' => 'pistol88\seo\behaviors\SeoFields',
            ],
        ];
    }
```

Теперь все СЕО поля доступны при вызове $model-&gt;seo.

Пример использования во вью файле:

```
if(!$title = $model->seo->title) {
    $title = "Купить {$model->name} в Кургане в магазине «Шоп45»";
}

if(!$description = $model->seo->description) {
    $description = 'Страница '.$model->name;
}

if(!$keywords = $model->seo->keywords) {
    $keywords = '';
}

$this->title = $title;

$this->registerMetaTag([
    'name' => 'description',
    'content' => $description,
]);

$this->registerMetaTag([
    'name' => 'keywords',
    'content' => $keywords,
]);
```

Виджеты
-------

[](#виджеты)

Ввод СЕО полей:

```

```

Его необходимо вызвать внутри формы редактирования вашей модели.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

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

---

Top Contributors

[![pistol88](https://avatars.githubusercontent.com/u/8104605?v=4)](https://github.com/pistol88 "pistol88 (11 commits)")

### Embed Badge

![Health badge](/badges/pistol88-yii2-seo/health.svg)

```
[![Health](https://phpackages.com/badges/pistol88-yii2-seo/health.svg)](https://phpackages.com/packages/pistol88-yii2-seo)
```

###  Alternatives

[christeredvartsen/php-bittorrent

A set of components that can be used to interact with torrent files (read+write) and classes that can encode/decode to/from the BitTorrent format.

10720.3k2](/packages/christeredvartsen-php-bittorrent)[rcknr/nova-multiselect-filter

A Laravel Nova filter that allows multiple selection.

26281.0k2](/packages/rcknr-nova-multiselect-filter)[mistralys/text-diff

Class used to compare strings using a DIFF implementation.

26119.7k6](/packages/mistralys-text-diff)[mgallegos/laravel-jqgrid

Laravel jqGrid package allows you to easily integrate the popular jQuery Grid Plugin (jqGrid) into your Laravel application.

6915.6k1](/packages/mgallegos-laravel-jqgrid)

PHPackages © 2026

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