A full SEO manament system for Yii2.

Installs: 172

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 4

Forks: 4

Open Issues: 0

Type:yii2-extension

dev-master 2014-12-11 03:32 UTC

This package is not auto-updated.

Last update: 2024-11-19 02:10:27 UTC


README

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',
        ],
    ],
    ......```