You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
J. King dbdc03aa7e Start on a readme file 1 year ago
lib Revise test for clarity 1 year ago
tests Revise test for clarity 1 year ago
vendor-bin Add standard test suite 1 year ago
.gitattributes Repository skeleton 1 year ago
.gitignore Repository skeleton 1 year ago
.php-cs-fixer.dist.php Style fixes 1 year ago
AUTHORS Repository skeleton 1 year ago
LICENSE Repository skeleton 1 year ago
README.md Start on a readme file 1 year ago
RoboFile.php Repository skeleton 1 year ago
composer.json Add public API 1 year ago
composer.lock Add IDN polyfill 1 year ago
robo Repository skeleton 1 year ago
robo.bat Repository skeleton 1 year ago

README.md

Microformats

A generic Microformats parser for PHP. While it similar to php-mf2, it combines a more accurate HTML parser with more consistent performance characteristics, and passes tests which the other library does not pass.

Usage

Functionality is provided for parsing from a file, from a string, and from an HTML element (a \DOMElement object), as well as for serializing to JSON.

The parsing methods all return a Microformats structure as an array. The Microformats wiki includes some sample structures in JSON format.

Parsing from a file