Skip to content

Extract microdata from HTML using PHP. Based on foolip's MicrodataJS implementation of the Microdata DOM API.

Notifications You must be signed in to change notification settings

andr3/MicrodataPHP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

MicrodataPHP
============

Microdata is a syntax for embedding machine-readable metadata in HTML.

MicrodataPHP is a PHP library for extracting microdata from HTML documents. It
is inspired by MicrodataJS, which is inspired by the native Microdata DOM API.

Example use:
  $url = 'http://lin-clark.com/cool-hand-luke';
  $md = new MicrodataPhp($url);
  $data = $md->obj();
  print $data->items[0]->properties['name'][0];   //prints 'Cool Hand Luke'
  print $data->items[0]->properties['genre'][0];  //prints 'prison drama'
  
REQUIREMENTS
============

PHP 5.2 or higher

About

Extract microdata from HTML using PHP. Based on foolip's MicrodataJS implementation of the Microdata DOM API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published