Skip to content

happy-code-com/simple_html_dom

 
 

Repository files navigation

Build Status Coverage Status codecov.io Scrutinizer Code Quality Codacy Badge SensioLabsInsight Dependency Status Total Downloads License

A HTML DOM parser written in PHP - let you manipulate HTML in a very easy way!

Adaptation for Composer and PSR-0 of: PHP Simple HTML DOM Parser project usable as a Composer package.

Check the official documentation at SourceForge.

  • PHP 5.3+ Support
  • Composer & PSR-0 Support
  • PHPUnit testing via Travis CI
  • PHP-Quality testing via SensioLabsInsight
  • UTF-8 Support
  • Invalid HTML Support
  • Find tags on an HTML page with selectors just like jQuery
  • Extract contents from HTML in a single line

Install via "composer require"

composer require voku/simple_html_dom

##Quick Start

use voku\helper\HtmlDomParser;

require_once 'composer/autoload.php';

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

$elems = $dom->find($elem_name);
...

##Examples

github.com/voku/simple_html_dom/tree/master/example

About

Just a Simple HTML DOM library fork.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 79.2%
  • HTML 20.8%