PHPackages                             prokhonenkov/yii2-xhtml-parser - 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. prokhonenkov/yii2-xhtml-parser

ActiveYii2-extension[Parsing &amp; Serialization](/categories/parsing)

prokhonenkov/yii2-xhtml-parser
==============================

The xhtml parser

1.0(6y ago)021MITPHPPHP &gt;=7.1

Since Jan 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/prokhonenkov/yii2-xhtml-parser)[ Packagist](https://packagist.org/packages/prokhonenkov/yii2-xhtml-parser)[ RSS](/packages/prokhonenkov-yii2-xhtml-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

XHtml parser
============

[](#xhtml-parser)

This extension parses an HTML page or XML document and returns a tree of the result.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require prokhonenkov/yii2-xhtml-parser

```

or add

```
"prokhonenkov/yii2-xhtml-parser": "*"

```

to the require section of your `composer.json` file.

Configuration
-------------

[](#configuration)

Add component declaration to your config file for web config:

```
