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

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

linchpinstudios/yii2-seo
========================

A full SEO manament system for Yii2.

51724PHP

Since Dec 11Pushed 11y ago3 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 SEO Management
===================

[](#yii2-seo-management)

A full SEO manament system for Yii2.

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

[](#installation)

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

Either run

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

```

or add

```
"linchpinstudios/yii2-seo": "*"

```

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

##### 3) Run Migrations

[](#3-run-migrations)

**For Blog**``` ./yii migrate/up --migrationPath=@vendor/linchpinstudios/yii2-seo/migrations ``` Usage
-----

[](#usage)

Setup beforeAction in controllers you want to use SEO

```
    {
        if (parent::beforeAction($action)) {
            $seoMetaTags = New \linchpinstudios\seo\models\Seo;
            $seoMetaTags->run();
            return true;  // or false if needed
        } else {
            return false;
        }
    }```

To access the module, you need to add this to your application configuration:

```
