2017 © Pedro Peláez
 

yii2-extension yii2-opengraph

Add open graph tags

image

fgh151/yii2-opengraph

Add open graph tags

  • Thursday, February 16, 2017
  • by fgh151
  • Repository
  • 1 Watchers
  • 1 Stars
  • 314 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 9 % Grown

The README.md

Open graph tags

Add open graph tags, (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist fgh151/yii2-opengraph "*"

or add, (*4)

"fgh151/yii2-opengraph": "*"

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

Usage

Once the extension is installed, add it to component config :, (*6)

'components' => [
   'opengraph' => [
       'class' => 'fgh151\opengraph\OpenGraph',
   ],
   //....
],

Then in controller or view set og tags, (*7)

Yii::$app->opengraph->title = 'My post';
Yii::$app->opengraph->description = 'My post description';
Yii::$app->opengraph->image = 'http://site.ru/image.jpg';

The Versions

16/02 2017

dev-master

9999999-dev

Add open graph tags

  Sources   Download

MIT

The Requires

 

extension yii2 opengraph

16/02 2017

v0.0.1

0.0.1.0

Add open graph tags

  Sources   Download

MIT

The Requires

 

extension yii2 opengraph