定制 tuxonice/php-simple-html-dom-parser 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tuxonice/php-simple-html-dom-parser

最新稳定版本:v2.0.0

Composer 安装命令:

composer require tuxonice/php-simple-html-dom-parser

包简介

Fork of sunra/php-simple-html-dom-parser with improvements and fixes.

README 文档

README

This package is a fork of sunra/php-simple-html-dom-parser with improvements and fixes. The original work was created by:

This fork is distributed under the MIT License, same as the original project.

Install

composer require tuxonice/php-simple-html-dom-parser:^2.0

Usage

use Tlab\HtmlDomParser\HtmlDomParser;

// Parse from a string
$dom = HtmlDomParser::str_get_html($str);
// or parse from a file
$dom = HtmlDomParser::file_get_html($file_name);

// Find elements using CSS selectors
$elems = $dom->find($elem_name);

// Example: Find all links
$links = $dom->find('a');
foreach($links as $link) {
    echo $link->href . "\n";
}

统计信息

  • 总下载量: 595
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 350
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-19