linchpinstudios/yii2-seo A full SEO manament system for Yii2.

extensionsearchseoengineoptimization

Yii2 SEO Management

A full SEO manament system for Yii2.

Installation

The preferred way to install this extension is through composer.

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

For Blog

./yii migrate/up --migrationPath=@vendor/linchpinstudios/yii2-seo/migrations

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:

```<?php
    ......
    'modules' => [
        'seo' => [
            'class' => 'linchpinstudios\seo\Module',
        ],
    ],
    ......```

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

No stable releases.

Comments



No stable releases.



MIT license
Stats
5 github stars & 4 github forks
0 downloads in the last day
0 downloads in the last 30 days
172 total downloads