awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
sunra avatar

sunra/php-simple-html-dom-parser

0
View on GitHub↗
1,286 stars·346 forks·HTML·11 views

Php Simple Html Dom Parser

php-simple-html-dom-parser is a PHP library for parsing HTML documents into a traversable in-memory tree that handles malformed markup gracefully. It constructs a complete object graph from raw HTML strings while retaining document structure and relational node hierarchies, and supports lazy child node iteration to load descendant nodes on demand for large documents.

The library features a CSS selector query engine that translates selector expressions to locate and filter matching nodes within the parsed DOM tree. Programmatic accessors provide direct string-based attribute retrieval to extract raw or sanitized attribute values and inner text content from targeted elements, supporting web scraping and data harvesting workflows.

Features

  • CSS Selector Engines - A markup query engine that finds matching nodes within an HTML tree using client-side selector syntax.
  • Markup Content Extractors - Retrieve specific text and attribute values from HTML elements using concise expressions for rapid data scraping.
  • Error-Resilient Parsers - Processes malformed, unclosed, or invalid HTML markup gracefully during tokenization without halting execution or throwing fatal errors.
  • DOM Tree Construction - Converts raw HTML markup strings into a fully traversable object graph that retains document structure and relational node hierarchies.
  • DOM Element Selectors - Find matching nodes within a markup tree using familiar query expressions similar to client-side selector syntax.
  • DOM Attribute Retrieval - Provides direct programmatic accessors to extract raw or sanitized attribute values and inner text content from targeted DOM elements.
  • HTML String Parsing - Process markup strings to build a traversable document tree that handles malformed or invalid syntax gracefully.
  • HTML Parsers - A PHP library for parsing HTML documents into a traversable tree that handles malformed markup gracefully.
  • Web Scraping and Extraction - Extracting specific text content and attribute values from HTML pages using concise expressions for rapid data harvesting.
  • DOM Element Selectors - Finding matching nodes within a markup tree using familiar query expressions similar to client-side selector syntax.
  • Hierarchical Node Lazy Loadings - Evaluates and loads descendant nodes on demand during traversal to minimize memory overhead when handling large HTML documents.
  • Web Scraping Libraries - A tool for extracting text and attribute values from HTML strings using concise query expressions.

Star history

Star history chart for sunra/php-simple-html-dom-parserStar history chart for sunra/php-simple-html-dom-parser

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Php Simple Html Dom Parser

These projects share indexed features with Php Simple Html Dom Parser. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • anglesharp/anglesharpAngleSharp avatar

    AngleSharp/AngleSharp

    5,499View on GitHub↗

    AngleSharp is an HTML5 DOM parser and web scraping framework designed to parse HTML5, SVG, and MathML documents into a W3C compliant document object model. It functions as a programmatic HTML generator and a CSS selector engine for querying and locating specific elements within a DOM. The project provides tools for simulating browser environments to automate web interactions, navigate URLs, and submit forms. It includes a dedicated HTML and CSS minifier to reduce the file size of web assets by removing unnecessary characters. The library supports HTML DOM manipulation and the extraction of s

    C#angle-bracketanglesharpc-sharp
    View on GitHub↗5,499
  • jmcarp/robobrowserjmcarp avatar

    jmcarp/robobrowser

    3,696View on GitHub↗

    Robobrowser is a Python web scraping library that provides a headless browser emulator and an HTML DOM parser. It is designed to programmatically navigate websites, interact with HTML forms, and extract data from web pages. The tool includes a web request caching mechanism to store previously fetched web content, reducing network traffic and increasing loading speeds for repeated requests. It covers capabilities for automated web navigation, programmatic web scraping, and web form automation, including the ability to populate input fields and trigger submission events. The system also manage

    Python
    View on GitHub↗3,696
  • inikulin/parse5inikulin avatar

    inikulin/parse5

    3,903View on GitHub↗

    parse5 is a WHATWG HTML parser and serializer for Node.js. It transforms HTML strings into a document object model and converts those trees back into valid HTML strings, following the logic defined by the HTML Living Standard. The project functions as a streaming HTML processor, using incremental parsing to handle large documents in chunks. It includes an HTML5 compliant tokenizer that uses a state-machine approach to break input into tokens according to official web specifications. The toolset covers HTML document parsing, serialization, and real-time rewriting via streams. These capabiliti

    TypeScript
    View on GitHub↗3,903
  • paquettg/php-html-parserpaquettg avatar

    paquettg/php-html-parser

    2,402View on GitHub↗

    PHP HTML Parser is a server-side programming library and DOM parser designed to ingest markup documents and structure them into a navigable parent-child object tree. The library provides a stream-based character lexer and a configurable rule engine that manages parser strictness, whitespace preservation, tag closing behavior, and character encoding detection during document ingestion. Content loading is handled through a pluggable retrieval layer that accepts local file paths, raw strings, and remote network URLs. Once loaded, documents can be queried using a chainable CSS selector engine th

    HTML
    View on GitHub↗2,402
Compare all 30 related projects→

Frequently asked questions

What does sunra/php-simple-html-dom-parser do?

php-simple-html-dom-parser is a PHP library for parsing HTML documents into a traversable in-memory tree that handles malformed markup gracefully. It constructs a complete object graph from raw HTML strings while retaining document structure and relational node hierarchies, and supports lazy child node iteration to load descendant nodes on demand for large documents.

What are the main features of sunra/php-simple-html-dom-parser?

The main features of sunra/php-simple-html-dom-parser are: CSS Selector Engines, Markup Content Extractors, Error-Resilient Parsers, DOM Tree Construction, DOM Element Selectors, DOM Attribute Retrieval, HTML String Parsing, HTML Parsers.

Which projects share features with sunra/php-simple-html-dom-parser?

Projects with overlapping indexed features include: anglesharp/anglesharp — AngleSharp is an HTML5 DOM parser and web scraping framework designed to parse HTML5, SVG, and MathML documents into a… jmcarp/robobrowser — Robobrowser is a Python web scraping library that provides a headless browser emulator and an HTML DOM parser. It is… inikulin/parse5 — parse5 is a WHATWG HTML parser and serializer for Node.js. It transforms HTML strings into a document object model and… paquettg/php-html-parser — PHP HTML Parser is a server-side programming library and DOM parser designed to ingest markup documents and structure… scinfu/swiftsoup — SwiftSoup is a cross-platform HTML processing library for Swift that converts raw HTML or XML strings and files into a… ionicabizau/scrape-it — scrape-it is a Node.js web scraper and HTML parser designed to extract structured data from websites and HTML files.…

Curated searches featuring Php Simple Html Dom Parser

Hand-picked collections where Php Simple Html Dom Parser appears.
  • HTML template engine