riiitor / yii2-seo
Seo component for YII2
Installs: 39
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-04-02 23:08:03 UTC
README
Install
create migration and apply it
yii migrate/create create_seo_table --fields=model_class:string:notNull,model_id:integer:notNull,title:string,keywords:string,description:string
add behavior to model
'seo' => [ 'class' => \riiitor\seo\behaviors\SeoBehavior::className(), ]
add widget to form
echo \riiitor\seo\widgets\SeoWidget::widget(['model' => $model]);
register meta
$model->registerSeo();