Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Masterminds/html5-php
An HTML5 parser and serializer for PHP.
https://github.com/Masterminds/html5-php
dom domdocument html5-document html5-parser html5-php html5lib php xml-namespaces
Last synced: about 1 month ago
JSON representation
An HTML5 parser and serializer for PHP.
- Host: GitHub
- URL: https://github.com/Masterminds/html5-php
- Owner: Masterminds
- License: other
- Created: 2013-04-03T01:38:08.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-08-07T04:06:16.000Z (4 months ago)
- Last Synced: 2024-10-29T15:08:06.506Z (about 1 month ago)
- Topics: dom, domdocument, html5-document, html5-parser, html5-php, html5lib, php, xml-namespaces
- Language: HTML
- Homepage: http://masterminds.github.io/html5-php/
- Size: 2.41 MB
- Stars: 1,588
- Watchers: 50
- Forks: 113
- Open Issues: 34
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-php - HTML5 PHP - An HTML5 parser and serializer library. (Table of Contents / Markup and CSS)
- awesome-php-cn - HTML5 PHP - HTML5解析器和序列化器库. (目录 / 标记和CSS Markup and CSS)
- awesome-projects - HTML5 PHP - An HTML5 parser and serializer library. (PHP / Markup and CSS)
- awesome-php - HTML5 PHP - An HTML5 parser and serializer library. (Table of Contents / Markup and CSS)
README
> # UKRAINE NEEDS YOUR HELP NOW!
>
> On 24 February 2022, Russian [President Vladimir Putin ordered an invasion of Ukraine by Russian Armed Forces](https://www.bbc.com/news/world-europe-60504334).
>
> Your support is urgently needed.
>
> - Donate to the volunteers. Here is the volunteer fund helping the Ukrainian army to provide all the necessary equipment:
> https://bank.gov.ua/en/news/all/natsionalniy-bank-vidkriv-spetsrahunok-dlya-zboru-koshtiv-na-potrebi-armiyi or https://savelife.in.ua/en/donate/
> - Triple-check social media sources. Russian disinformation is attempting to coverup and distort the reality in Ukraine.
> - Help Ukrainian refugees who are fleeing Russian attacks and shellings: https://www.globalcitizen.org/en/content/ways-to-help-ukraine-conflict/
> - Put pressure on your political representatives to provide help to Ukraine.
> - Believe in the Ukrainian people, they will not surrender, they don't have another Ukraine.
>
> THANK YOU!
----# HTML5-PHP
HTML5 is a standards-compliant HTML5 parser and writer written entirely in PHP.
It is stable and used in many production websites, and has
well over [five million downloads](https://packagist.org/packages/masterminds/html5).HTML5 provides the following features.
- An HTML5 serializer
- Support for PHP namespaces
- Composer support
- Event-based (SAX-like) parser
- A DOM tree builder
- Interoperability with [QueryPath](https://github.com/technosophos/querypath)
- Runs on **PHP** 5.3.0 or newer[![CI](https://github.com/Masterminds/html5-php/actions/workflows/ci.yaml/badge.svg)](https://github.com/Masterminds/html5-php/actions/workflows/ci.yaml)
[![Latest Stable Version](https://poser.pugx.org/masterminds/html5/v/stable.png)](https://packagist.org/packages/masterminds/html5)
[![Code Coverage](https://scrutinizer-ci.com/g/Masterminds/html5-php/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Masterminds/html5-php/?branch=master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Masterminds/html5-php/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Masterminds/html5-php/?branch=master)
[![Stability: Sustained](https://masterminds.github.io/stability/sustained.svg)](https://masterminds.github.io/stability/sustained.html)## Installation
Install HTML5-PHP using [composer](http://getcomposer.org/).
By adding the `masterminds/html5` dependency to your `composer.json` file:
```json
{
"require" : {
"masterminds/html5": "^2.0"
},
}
```By invoking require command via composer executable:
```bash
composer require masterminds/html5
```## 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
TEST
Hello World
This is a test of the HTML5 parser.