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

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

amirax/yii2-seo-tools
=====================

SEO tools for Yii 2 framework

v0.2.3(8y ago)131.1k3MITPHPPHP &gt;=5.4.0

Since Apr 24Pushed 8y ago3 watchersCompare

[ Source](https://github.com/Amirax/yii2-seo-tools)[ Packagist](https://packagist.org/packages/amirax/yii2-seo-tools)[ Docs](https://github.com/amirax/yii2-seo-tools)[ RSS](/packages/amirax-yii2-seo-tools/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

Amirax SEO Tools for Yii 2
==========================

[](#amirax-seo-tools-for-yii-2)

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

[](#installation)

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

Either run

```
php composer.phar require amirax/yii2-seo-tools "*"

```

or add

```
"amirax/yii2-seo-tools": "*"

```

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

After installation extension run migration:

```
./yii migrate --migrationPath="@vendor/amirax/yii2-seo-tools/src/migrations"

```

Usage
-----

[](#usage)

### SEO Meta

[](#seo-meta)

In components configuration add the following

```
'components' => [
    'seo' => [
        'class' => 'Amirax\SeoTools\Meta'
    ]
    ...
]
```

And add SEO extension to bootstrap

```
'bootstrap' => ['log', 'seo']
```

Extension will automatically load the correct row from the database using the currently running and params.You can optionally override data by specifying them in a parameter array

```
Yii::$app->seo->title = 'Page title';
Yii::$app->seo->metakeys = 'seo,yii2,extension';
Yii::$app->seo->metadesc = 'Page meta description';
Yii::$app->seo->tags['og:type'] = 'article';
```

You can set the templates for tags. For example:

```
Yii::$app->seo->setVar('USER_NAME', 'Amirax');
Yii::$app->seo->tags['og:title'] = 'Hello %USER_NAME%';
```

Default variables:

- %HOME\_URL% - Homepage url
- %CANONICAL\_URL% - Canonical URL for current page
- %LOCALE% - Site locale

### SEO Redirect

[](#seo-redirect)

For enabling SEO Redirect add to configuration file

```
'errorHandler' => [
    'class' => 'Amirax\SeoTools\Redirect',
],
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% 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 ~195 days

Total

5

Last Release

3261d ago

### Community

Maintainers

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

---

Top Contributors

[![amirax](https://avatars.githubusercontent.com/u/5058231?v=4)](https://github.com/amirax "amirax (10 commits)")[![maxvoronov](https://avatars.githubusercontent.com/u/8292606?v=4)](https://github.com/maxvoronov "maxvoronov (1 commits)")

---

Tags

yii2extensionseo

### Embed Badge

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

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

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[umanskyi31/opengraph

Created a new component for Yii2. The Open Graph component for your website

119.7k](/packages/umanskyi31-opengraph)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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