Skip to content

camilord/php-simple-html-dom-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-simple-html-dom-parser

Wrapper Version: 1.x

Wrapper for PHP Simple HTML DOM Parser to work on composer

PHP Simple HTML DOM Parser

Version 1.9.1

A simple PHP HTML DOM parser written in PHP5+, supports invalid HTML, and provides a very easy way to find, extract and modify the HTML elements of the dom. jquery like syntax allow sophisticated finding methods for locating the elements you care about.

http://simplehtmldom.sourceforge.net/

Installation

cast a command:

php composer.phar require camilord/php-simple-html-dom-parser

or

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

or add to composer.json

"require": {
    "camilord/php-simple-html-dom-parser": "^1.0"
}

Usage

use camilord\PhpSimpleHtmlDomParser\HtmlDomParser;

...
$dom = HtmlDomParser::str_get_html($str);
or 
$dom = HtmlDomParser::file_get_html($file_name);

$elems = $dom->find('small.count');
...

About

PHP Simple HTML DOM Parser

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages