2017 © Pedro Peláez
 

library opengraph

Open Graph Protocol helper for PHP - A small library for making accessing of Open Graph Protocol data easier

image

f1ames/opengraph

Open Graph Protocol helper for PHP - A small library for making accessing of Open Graph Protocol data easier

  • Friday, February 14, 2014
  • by f1ames
  • Repository
  • 1 Watchers
  • 1 Stars
  • 4,979 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 116 Forks
  • 0 Open issues
  • 1 Versions
  • 2 % Grown

The README.md

A composer friendly fork of https://github.com/scottmac/opengraph, available on packagist https://packagist.org/packages/f1ames/opengraph, (*1)

Open Graph Protocol helper for PHP

A small library for making accessing of Open Graph Protocol data easier., (*2)

Note

Keys with a dash (-) in the name are converted to _ for easy access as a property in PHP, (*3)

Required Extensions

  • DOM for parsing

Usage

require_once('OpenGraph.php');

$graph = OpenGraph::fetch('http://www.rottentomatoes.com/m/10011268-oceans/');
var_dump($graph->keys());
var_dump($graph->schema);

foreach ($graph as $key => $value) {
    echo "$key => $value";
}

The Versions

14/02 2014

dev-master

9999999-dev

Open Graph Protocol helper for PHP - A small library for making accessing of Open Graph Protocol data easier

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

opengraph og opengraph protocol