PHPackages                             gregory-coolich/yii2-seotools - 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. gregory-coolich/yii2-seotools

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

gregory-coolich/yii2-seotools
=============================

Component and module to manage unique seo title, description, h1\_heading and unique text associated with a page

02.7k↑92.9%PHP

Since Jun 19Pushed 11mo agoCompare

[ Source](https://github.com/gregory-coolich/yii2-seotools)[ Packagist](https://packagist.org/packages/gregory-coolich/yii2-seotools)[ RSS](/packages/gregory-coolich-yii2-seotools/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Tool to manage particular SEO Metas and text for especial pages
===============================================================

[](#tool-to-manage-particular-seo-metas-and-text-for-especial-pages)

If you need set unique seo title, description associated with a page this is your extension, you can also add a html text using a wysiwis tool to add bold and links and improve your SEO in page with a unique content.

Set this fields using a module to manage all this functionality.

Use internally a md5 hash to made a unique id with (Host + Path) to identify pages and yii cache system and tag dependency to improve speed

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist gregory-coolich/yii2-seotools "*"

```

or add

```
"gregory-coolich/yii2-seotools": "*"

```

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

\###Migration

Run the following command in Terminal for database migration:

Linux/Unix:

```
yii migrate/up --migrationPath=@vendor/gregory-coolich/yii2-seotools/migrations

```

Windows:

```
yii.bat migrate/up --migrationPath=@vendor/gregory-coolich/yii2-seotools/migrations

```

\###Config

A simple exmple of turning on seotool component.

```
'components' => [
        'seotools' => [
            'class' => 'gregory-coolich\seotools\Component',
        ],
    ],
```

Turning on the seotools Module:

Simple example:

```
    'modules' => [
        'seotools' => [
            'class' => 'gregory-coolich\seotools\Module',
            'roles' => ['@'], // For setting access levels to the seotools interface.
        ]
    ],
```

Usage
-----

[](#usage)

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

```
 // @param bool $setCanonical true, try to create a canonical url and og url, action needs to have params
 // @param bool $checkDb try to get from DB params, true: try to get info from DB if it doesn't find save a new field
 // associated to current host + '/' + path, false: it just set the params give in the call. The db params has priority
 // over the call function params. It does a merge
$setCanonical = false;
$checkDb = true;
Yii::$app->seotools->setMeta(['title' => \Yii::t('title','A good title for this page')], $setCanonical, $checkDb);
```

You can invalidate the cache save records calling

```
\yii\caching\TagDependency::invalidate(Yii::$app->cache, gregory-coolich\seotools\Component::CACHE_TAG);
```

\###URLs

URLs for the seotools manage module:

```
/seotools/manage
/seotools/manage/create
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/250ec46c46522a675c048b974890006304d92887cd93520f96f83a67138d9043?d=identicon)[gregory-coolich](/maintainers/gregory-coolich)

---

Top Contributors

[![jpunanua](https://avatars.githubusercontent.com/u/8653986?v=4)](https://github.com/jpunanua "jpunanua (11 commits)")[![denisyukphp](https://avatars.githubusercontent.com/u/14075491?v=4)](https://github.com/denisyukphp "denisyukphp (6 commits)")[![gavrolga](https://avatars.githubusercontent.com/u/87424671?v=4)](https://github.com/gavrolga "gavrolga (4 commits)")[![gregory-coolich](https://avatars.githubusercontent.com/u/157577174?v=4)](https://github.com/gregory-coolich "gregory-coolich (4 commits)")[![ryhor123](https://avatars.githubusercontent.com/u/13921256?v=4)](https://github.com/ryhor123 "ryhor123 (2 commits)")

### Embed Badge

![Health badge](/badges/gregory-coolich-yii2-seotools/health.svg)

```
[![Health](https://phpackages.com/badges/gregory-coolich-yii2-seotools/health.svg)](https://phpackages.com/packages/gregory-coolich-yii2-seotools)
```

###  Alternatives

[foxy/foxy

Fast, reliable, and secure NPM/Yarn/pnpm bridge for Composer

177287.5k25](/packages/foxy-foxy)[elijaa/phpmemcacheadmin

Graphic stand-alone administration for memcached

2618.4k](/packages/elijaa-phpmemcacheadmin)[mateffy/laravel-introspect

Analyze Laravel codebases and find structured information about models, routes and other Laravel-specific things.

1698.7k2](/packages/mateffy-laravel-introspect)

PHPackages © 2026

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