PHP Package: paquettg/php-html-parser

PHP HTML parser library for efficient web scraping and manipulation with CSS selectors and XPath support.

Current Version: 3.1.1
Last Updated: Date not available
PHP Requirement: >=7.2
Dependencies:
symfony/css-selector
symfony/dom-crawler
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The PHP HTML parser is a powerful tool for extracting and manipulating data from HTML documents. With support for CSS selectors and XPath, it offers flexibility and efficiency for web scraping tasks. This library simplifies the process of parsing HTML content, enabling developers to extract relevant information effortlessly.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 3.1.1

Download Download v3.1.1

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/paquettg/php-html-parser/3.1.1/loader.php';
require_once 'libs/symfony/css-selector/7.3.0/loader.php';
require_once 'libs/symfony/dom-crawler/7.3.3/loader.php';

use PHPHtmlParser\Dom;
use PHPHtmlParser\Selector\Parser;
use Symfony\Component\CssSelector\CssSelectorConverter;

$obj = new Dom();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.