Login   Register  
PHP Classes
elePHPant
Icontem

Microformats Parser

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Ve Bailovity
Name: Ve Bailovity <e-mail contact>
Packages: 5 Browse all classes by Ve Bailovity Browse all classes by
Country: Serbia and Montenegro Serbia and Montenegro - PHP jobs in Serbia and Montenegro
Age: 32
All time rank: 4592 in Serbia and Montenegro Serbia and Montenegro
Week rank: 1114 Down3 in Serbia and Montenegro Serbia and Montenegro Down
Innovation award
Innovation award
Nominee: 4x


  Detailed description   Download .zip .tar.gz  
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.

  Classes of Ve Bailovity  >  Microformats Parser  >  Download .zip .tar.gz  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Microformats Parser
Base name: microformatsparser
Description: Extract microformat data embedded in HTML
Version: 1.1
PHP version: 4.3
License: BSD License
All time users: 1330 users
All time rank: 2566
Week users: 1 user
Week rank: 2183 Up
 
  Groups   Rate classes User ratings   Dependencies  
  Trackback   Applications   Related links   Files Files  

  Groups  
Group folder image HTML HTML generation and processing View top rated classes


  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

  User ratings  
There are not enough user ratings to display for this class.

  Packages needed by this class  
Class Dependency Why it is needed
xArray
Required
Used to 1) accomplish property-based filtering of DOM nodes; 2) facilitate further resulting data manipulation; 3) make the code much more readable

  Trackback links  
Link Description
PHP Microformat Parser There’s a lot of focus on full-blown web services and complete XML documents...

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

  Related links  
Link Description
10 Dos and Don'ts When Using Microformats Parser Some of the most common problems - and some of the best practices to circumvent them
microformats parser An article on parser requirements and usage.

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

Download all files: microformatsparser.tar.gz microformatsparser.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.