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
|
1 year ago | |
---|---|---|
lib | 1 year ago | |
tests | 1 year ago | |
vendor-bin | 1 year ago | |
.gitattributes | 1 year ago | |
.gitignore | 1 year ago | |
.php-cs-fixer.dist.php | 1 year ago | |
AUTHORS | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
RoboFile.php | 1 year ago | |
composer.json | 1 year ago | |
composer.lock | 1 year ago | |
robo | 1 year ago | |
robo.bat | 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.