PHPackages                             soundasleep/html5lib-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. soundasleep/html5lib-php

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

soundasleep/html5lib-php
========================

A PHP implementations of a HTML parser based on the WHATWG HTML5 specification.

0.1.3(12y ago)31.8k1MITPHPPHP &gt;=5.3.2

Since Apr 18Pushed 7y ago1 watchersCompare

[ Source](https://github.com/soundasleep/html5lib-php)[ Packagist](https://packagist.org/packages/soundasleep/html5lib-php)[ Docs](https://github.com/soundasleep/html5lib-php)[ RSS](/packages/soundasleep-html5lib-php/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (4)Used By (0)

HTML5Lib - PHP flavour
======================

[](#html5lib---php-flavour)

This is an implementation of the tokenization and tree-building parts of the HTML5 specification in PHP. Potential uses of this library can be found in web-scrapers and HTML filters.

Warning: This is a pre-alpha release, and as such, certain parts of this code are not up-to-snuff (e.g. error reporting and performance). However, the code is very close to spec and passes 100% of tests not related to parse errors. Nevertheless, expect to have to update your code on the next upgrade.

This fork combines the work of [html5lib/html5lib-php](https://github.com/html5lib/html5lib-php)and [lavoiesl/php-html5lib](https://github.com/lavoiesl/php-html5lib), and can be used with [composer](https://getcomposer.org/)through [Packagist](https://packagist.org/packages/soundasleep/html5lib-php):

```
{
  "require": {
    "soundasleep/html5lib-php": "~0.1.3"
  }
}
```

Usage notes
-----------

[](#usage-notes)

```
