2017 © Pedro Peláez
 

library yii2-seo-helper

Set SEO variables (Title, Description etc) from every model;

image

warsztatweb/yii2-seo-helper

Set SEO variables (Title, Description etc) from every model;

  • Thursday, September 7, 2017
  • by spike2k
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yii2 SEO Helper

Set SEO variables (Title, Description etc) from every model;, (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist warsztatweb/yii2-seo-helper "*"

or add, (*4)

"warsztatweb/yii2-seo-helper": "*"

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

Usage

Once the extension is installed, simply use it in your code by:, (*6)

Attach the component in your config file:, (*7)

'components' => [
    'seo' => [
        'class' => 'warsztatweb\seo\Helper',
    ],
],

Using

Set SEO data

echo Yii::$app->seo->set($model);

$model should have these attributes to work properly:, (*8)

meta_title meta_description meta_keywords h1 params[] eg: params["og:image"], (*9)

Module can handla other columns like title,name,nazwa,tytul,tyt for meta_title; columns like lead, description, desc, html for meta_description. It looks for column named baner, banner, thumb, image for automaticlay generated og:image property., (*10)

og tags are generated automaticaly based on meta_title, meta_desription, (*11)

SEO Meta based on route

//todo, (*12)

SEO Redirect

For enabling SEO Redirect add to configuration file, (*13)

'errorHandler' => [
    'class' => 'warsztatweb\seo\Redirect',
],

Based on Amirax SEO Tools for Yii 2 https://github.com/Amirax/yii2-seo-tools, (*14)

The Versions

07/09 2017

dev-master

9999999-dev

Set SEO variables (Title, Description etc) from every model;

  Sources   Download

GPL-3.0+

The Requires

 

by Marcin Rozmarynowski

helper seo activerecord seo redirect 301 seo redirects