Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

Latest commit

 

History

History
36 lines (28 loc) · 576 Bytes

README.md

File metadata and controls

36 lines (28 loc) · 576 Bytes

yii2-seo

This package helps you to implement seo params for entities in your project easier

Installation

php composer.phar require "moein7tl/yii2-seo:dev-master" 

or add

"moein7tl/yii2-seo": "dev-master,

Use Seo behavior and trait in each models which needs seo, e.g: post

class Post extends ActiveRecord
{
    use SeoTrait;
    
        
    /**
     * @return array
     */
    public function behaviors()
    {
        return [
            [
                'class'     =>  SeoBehavior::className()
            ]
        ];
    }
}