andig/php-html-parser 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

andig/php-html-parser

Composer 安装命令:

composer require andig/php-html-parser

包简介

Refactored repack of https://github.com/hkk12369/php-html-parser

README 文档

README

Build status: Build status

A simple and efficient DOMDocument based PHP HTML and XML Parser. It accepts both css selector and xpath queries to search the document and handles malformed HTML as well.

Example:

$html = HtmlParser::from_string('<div id="outer"><span class="red">Some Text</span></div>');
$text = $html->find('#outer .red', 0)->text;
echo $text;   // outputs "Some Text"

Authors

Originally source code taken from https://github.com/hkk12369/php-html-parser. Test cases and refactoring for composer/packagist by https://github.com/andig/php-html-parser.

Installation via Composer

Define the following requirement in your composer.json file:

{
    "require": {
        "andig/php-html-parser": "dev-master"
    }
}

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: WTFPL
  • 更新时间: 2014-01-21