dlds/yii2-metas

Yii2 Meta Tags handler

Installs: 7 879

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.6 2017-03-16 14:51 UTC

This package is not auto-updated.

Last update: 2024-12-21 17:43:30 UTC


README

Meta tags extension for Yii 2.0. Used for registering appropriate meta tags into current web view.

Available tags types

Configuration

'components' => [
	'metas' => [
		'class' => 'dlds\metas\MetaHandler',
                'title' => 'Default title goes here',
                'description' => 'Default description goes here',
                //...
	],
	//...
],

Usage

Meta tags must be registered before page render do its work

Yii::$app->metas->title = 'Custom title';
Yii::$app->metas->description = 'Custom description';

Available Properties