2017 © Pedro Peláez
 

library php-html-parser

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

image

andig/php-html-parser

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

  • Tuesday, January 21, 2014
  • by andig
  • Repository
  • 1 Watchers
  • 2 Stars
  • 520 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

PHP HTML Parser

Build status: Build status, (*1)

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., (*2)

Example:, (*3)

$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., (*4)

Installation via Composer

Define the following requirement in your composer.json file:, (*5)

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

The Versions

21/01 2014

dev-master

9999999-dev https://github.com/andig/php-html-parser

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

  Sources   Download

WTFPL

The Requires

  • php >=5.3

 

The Development Requires

html parser css selector