Skip to content
An SEO manager for yii2.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
controllers
migrations
models
views
widgets
AutoloadExample.php
Module.php
README.md
composer.json

README.md

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',
        ],
    ],
    ......```
You can’t perform that action at this time.