2017 © Pedro Peláez
 

yii2-extension yii2seo

Yii2 SEO extension

image

kravchukdim/yii2seo

Yii2 SEO extension

  • Friday, July 10, 2015
  • by Dima
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SEO Extension

Installation

The preferred way to install this extension is through composer., (*1)

Either run, (*2)

php composer.phar require --prefer-dist kravchukdim/yii2seo "*"

or add, (*3)

"kravchukdim/yii2seo": "*"

to the require section of your composer.json., (*4)

Usage

You need execute seo init migration by the following command:, (*5)

php yii migrate/up --migrationPath=@kravchukdim/yii2seo/migrations

To use this extension, you have to configure the main config in your application:, (*6)

'modules' => [
        'admin' => [
            'controllerMap' => [
                'seo-module' => 'kravchukdim\yii2seo\controllers\SeoController',
                'seo-category-module' => 'kravchukdim\yii2seo\controllers\SeoCategoryController'
            ],
        ],
    ],

You can use component seo in your layouts, views, controllers like following:, (*7)

    use kravchukdim\yii2seo\components\Seo;

    Seo::setTitle($options);
    Seo::setPageContentTag($options);
    Seo::setMetaTags($options);

The Versions

10/07 2015

dev-master

9999999-dev

Yii2 SEO extension

  Sources   Download

MIT

by Dmitry Kravchuk

extension yii2