2017 © Pedro Peláez
 

library yii-opengraph

Yii component to store and render opengraph tags.

image

urmaul/yii-opengraph

Yii component to store and render opengraph tags.

  • Wednesday, November 11, 2015
  • by urmaul
  • Repository
  • 1 Watchers
  • 0 Stars
  • 32 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Opengraph

Yii component to store and render opengraph tags., (*1)

Why

  • You can make only first/last occurance of metatag to be rendered.
  • It converts image links to absolute.
  • You'll white it anyway.

Supported tags

  • og:title
  • og:url
  • og:description
  • og:image

Installing

Add this to "components" part of your config., (*2)

'og' => array(
    'class' => 'ext.opengraph.Opengraph',
),

Using

// Set og:image
Yii::app()->og->image = $imageUrl;
// Set og:image if not set
Yii::app()->og->setImage($imageUrl, false);

// Flush contents to ClientScript
Yii::app()->og->flush();

The Versions

11/11 2015

dev-master

9999999-dev https://github.com/urmaul/opengraph

Yii component to store and render opengraph tags.

  Sources   Download

MIT

The Requires

 

yii opengraph

11/11 2015

v1.3.0

1.3.0.0 https://github.com/urmaul/opengraph

Yii component to store and render opengraph tags.

  Sources   Download

MIT

The Requires

 

yii opengraph

11/11 2015

v1.2.0

1.2.0.0 https://github.com/urmaul/opengraph

Yii component to store and render opengraph tags.

  Sources   Download

MIT

The Requires

 

yii opengraph

11/11 2015

v1.1.0

1.1.0.0 https://github.com/urmaul/opengraph

Yii component to store and render opengraph tags.

  Sources   Download

MIT

The Requires

 

yii opengraph

07/02 2015

v1.0.0

1.0.0.0 https://github.com/urmaul/opengraph

Yii component to store and render opengraph tags.

  Sources   Download

MIT

The Requires

 

yii opengraph