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

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

warsztatweb/yii2-seo-helper
===========================

Set SEO variables (Title, Description etc) from every model;

06PHP

Since Sep 7Pushed 8y ago1 watchersCompare

[ Source](https://github.com/spike2k/yii2-seo-helper)[ Packagist](https://packagist.org/packages/warsztatweb/yii2-seo-helper)[ RSS](/packages/warsztatweb-yii2-seo-helper/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 SEO Helper
===============

[](#yii2-seo-helper)

Set SEO variables (Title, Description etc) from every model;

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist warsztatweb/yii2-seo-helper "*"

```

or add

```
"warsztatweb/yii2-seo-helper": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by:

Attach the component in your config file:

```
'components' => [
    'seo' => [
        'class' => 'warsztatweb\seo\Helper',
    ],
],
```

Using
-----

[](#using)

### Set SEO data

[](#set-seo-data)

```
echo Yii::$app->seo->set($model);
```

$model should have these attributes to work properly:

meta\_title meta\_description meta\_keywords h1 params\[\] eg: params\["og:image"\]

Module can handla other columns like title,name,nazwa,tytul,tyt for meta\_title; columns like lead, description, desc, html for meta\_description. It looks for column named baner, banner, thumb, image for automaticlay generated og:image property.

og tags are generated automaticaly based on meta\_title, meta\_desription

### SEO Meta based on route

[](#seo-meta-based-on-route)

//todo

### SEO Redirect

[](#seo-redirect)

For enabling SEO Redirect add to configuration file

```
'errorHandler' => [
    'class' => 'warsztatweb\seo\Redirect',
],
```

Based on Amirax SEO Tools for Yii 2

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

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/6337922?v=4)[Marcin](/maintainers/spike2k)[@spike2k](https://github.com/spike2k)

---

Top Contributors

[![spike2k](https://avatars.githubusercontent.com/u/6337922?v=4)](https://github.com/spike2k "spike2k (5 commits)")

### Embed Badge

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

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

###  Alternatives

[overtrue/laravel-emoji

An emojione bridge for Laravel.

15045.4k3](/packages/overtrue-laravel-emoji)[sivka/paginator

bootstrap-4 fork of jasongrimes/php-paginator, a lightweight PHP paginator, for generating pagination controls in the style of Stack Overflow and Flickr. The 'first' and 'last' page links are shown inline as page numbers, and excess page numbers are replaced by ellipses.

141.4k](/packages/sivka-paginator)

PHPackages © 2026

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