# HTML5-PHP This is a **highly experimental** HTML5 Parser. The need for an HTML5 parser in PHP is clear. This project initially began with the seemingly abandoned `html5lib` project [original source](https://code.google.com/p/html5lib/source/checkout). But after some initial refactoring work, we began a new parser. - An HTML5 serializer [feature complete] - Support for PHP namespace [done] - Composer support [done] - Event-based (SAX-like) parser [feature complete] - DOM tree builder [feature complete] - Interoperability with QueryPath [[in progress](https://github.com/technosophos/querypath/issues/114)] [![Build Status](https://travis-ci.org/Masterminds/html5-php.png?branch=master)](https://travis-ci.org/Masterminds/html5-php) ## Installation Install HTML5-PHP using [composer](http://getcomposer.org/). To install, add `masterminds/html5` to your `composer.json` file: ``` { "require" : { "masterminds/html5": "dev-master" }, } ``` (You may substitute `dev-master` for a more stable release tag, of course.) From there, use the `composer install` or `composer update` commands to install. ## Basic Usage HTML5-PHP has a high-level API and a low-level API. Here is how you use the high-level `HTML5` library API: ```php
This is a test of the HTML5 parser.