PHP Classes

Microformats Parser: Extract microformat data embedded in HTML

Recommend this page to a friend!
  Info   View files View files (13)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2007-10-16 (11 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,373 All time: 2,791 This week: 437Up
Version License PHP version Categories
microformatsparser 1.1BSD License4.3HTML
Description Author

This package can be used to parse and extract microformat data that may be embedded in HTML documents.

The main class parses HTML documents with the PHP DOM-XML extension. This class builds a document structure and passes specific document node object to separate classes specialized in parsing and extracting different types of microformat data.

Currently there are parser classes for extracting data of the microformats: hCalendar, hCard, hReview and relElement.

The extracted data is returned as array objects of the xArray class.

Innovation Award
PHP Programming Innovation award nominee
December 2006
Number 6

Prize: One book of choice by Packt
The promises of the semantic Web, that uses additional XML embedded in normal HTML documents, were not yet fulfilled.

Apparently that was due to the lack of motivation of Web site developers to add information to documents that does not bring any direct benefits.

Microformats seem to be yet another attempt to motivate Web developers to add semantic information to their Web pages. Instead of having to include additional tags, microformats define conventions to embed semantic information in regular XHTML page content.

This class is capable of parsing and extracting pages with several kinds of microformats. With this class, PHP applications can process the semantic information embedded in the pages and use it easily to create new kinds of Web applications.

Manuel Lemos
Name: Ve Bailovity <contact>
Classes: 5 packages by
Country: Serbia and Montenegro Serbia and Montenegro
Age: 38
All time rank: 4962 in Serbia and Montenegro Serbia and Montenegro
Week rank: 948 Down2 in Serbia and Montenegro Serbia and Montenegro Equal
Innovation award
Innovation award
Nominee: 4x


  Files folder image Files  
File Role Description
Files folder imagedoc (6 files)
Files folder imagelib (5 files)
Accessible without login Plain text file index.php Example Example usage
Accessible without login HTML file testpage.html Data HTML to be parsed by the example script

  Files folder image Files  /  doc  
File Role Description
  Accessible without login HTML file classh_calendar.html Doc. documentation
  Accessible without login HTML file classh_card.html Doc. documentation
  Accessible without login HTML file classh_review.html Doc. documentation
  Accessible without login HTML file classrel_element.html Doc. documentation
  Accessible without login HTML file class_micro_format_parser.html Doc. Main library class documentation
  Accessible without login Plain text file README Doc. Read this first

  Files folder image Files  /  lib  
File Role Description
  Plain text file hCalendar.php Class Class file
  Plain text file hCard.php Class Class file
  Plain text file hReview.php Class Class file
  Plain text file MicroFormatParser.php Class Main class file
  Plain text file relElement.php Class Class file 18KB
Downloadmicroformatsparser-2007-10-16.tar.gz 12KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
xArray Download .zip .tar.gz Used to 1) accomplish property-based filtering of DOM nodes; 2) facilitate further resulting data manipulation; 3) make the code much more readable Required
 Version Control Unique User Downloads Download Rankings  
This week:0
All time:2,791
This week:437Up