PHP Classes

Microformats Parser: Extract microformat data embedded in HTML

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 58%Total: 1,378 All time: 2,821 This week: 488Up
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
Picture of Ve Bailovity
Name: Ve Bailovity <contact>
Classes: 5 packages by
Country: Yugoslavia
Age: 44
All time rank: 5052 in Yugoslavia
Week rank: 215 Up1 in Yugoslavia Up
Innovation award
Innovation award
Nominee: 4x

  Files folder image Files (13)  
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 (13)  /  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 (13)  /  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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
Downloadmicroformatsparser-2007-10-16.zip 18KB
Downloadmicroformatsparser-2007-10-16.tar.gz
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  
 0%
Total:1,378
This week:0
All time:2,821
This week:488Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:66%StarStarStarStar
Documentation:66%StarStarStarStar
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:1534