# paquettg/php-html-parser

An HTML DOM parser. It allows you to manipulate HTML. Find tags on an HTML page with selectors just like jQuery.

Repository: https://github.com/paquettg/php-html-parser
Canonical: https://ross.abutalabs.com/products/php-html-parser
Language: HTML
License: MIT
License Family: permissive
Last push: 2024-08-09T10:27:48+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4646, "days_push": 754, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2398, forks 467 (observed 2026-08-28T04:06:43.729414+00:00)

## What it is
A PHP library that parses HTML into a DOM and lets you find and manipulate tags using CSS selectors, similar to jQuery. It is designed for quick and easy HTML scraping, even of invalid markup.

## Use cases
- scrape data from html pages in php
- find elements by css selector like jquery
- parse and manipulate html dom
- extract links and text from a web page
- load html from a file or string and query tags
- build a simple web scraper in php

## When to choose
- you need jQuery-style CSS selector querying in PHP
- you must parse messy or invalid HTML
- you want a lightweight composer-installable scraper library

## When to avoid
- you need full browser rendering or JavaScript execution
- you are working outside PHP
- you need a maintained parser with active development

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, web-scraping, developer-tools
- domain: web-development, parsers, crawlers, developer-tools
- platform: php, cross-platform
- tags: html-dom, css-selectors, jquery-like, scraping, composer

## Member repositories
- paquettg/php-html-parser (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:43.729414+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:34:19.236989+00:00, confidence not recorded.
  - readme: https://github.com/paquettg/php-html-parser (fetched 2026-08-28T04:06:43.729414+00:00, sha ff10ad1c5820)
- Data as of 2026-08-30T08:39:29.467469+00:00.
