Skip to content

scottmac/opengraph

Folders and files

Image for: Folders and files
NameName
Last commit message
Last commit date

Latest commit

Image for: Latest commit
 

History

Image for: History
11 Commits
 
 
 
 
 
 

Repository files navigation

Image for: Repository files navigation

Open Graph Protocol helper for PHP

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

Note

Image for: Note

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

Required Extensions

Image for: Required Extensions
  • DOM for parsing

Usage

Image for: 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

Image for: About

Helper class for accessing the OpenGraph Protocol

Resources

Stars

Watchers

Forks

Releases

Image for: Releases
No releases published

Packages

Image for: Packages 0
No packages published

Contributors 4

Image for: Contributors 4
  •  
  •  
  •  
  •  

Languages

Image for: Languages