Skip to content

Helper class for accessing the OpenGraph Protocol

Notifications You must be signed in to change notification settings

AramZS/opengraph

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

Open Graph Protocol helper for PHP

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

Note

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

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";
}

About

Helper class for accessing the OpenGraph Protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%