2017 © Pedro Peláez
 

library advanced_html_dom

A better drop-in replacement for PHP's simple html dom.

image

mastermunj/advanced_html_dom

A better drop-in replacement for PHP's simple html dom.

  • Thursday, December 29, 2016
  • by mastermunj
  • Repository
  • 1 Watchers
  • 0 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 21 Forks
  • 0 Open issues
  • 4 Versions
  • 5 % Grown

The README.md

The goal of this project is to be a DOM-based drop-in replacement for PHP's simple html dom library., (*1)

How To Use - The same way as simple. If you use file/str_get_html then you don't need to change anything. If you are instantiating with new simple_html_dom() then you will need to change that to new AdvancedHtmlDom(), (*2)

What's Different - Mostly just formatting (spaces) in the html. This is added by DOM and there's no way around it. Some non-standard selectors have been dropped but many more standard ones have been added. For example: img[src!=foo] was removed because it's not a valid selector. Added are things like a + b and a ~ b or even a.foo:not(.bar), (*3)

What's Better - 10x-20x Performance increase - Reduced memory requirement - Support for many more css selectors, (*4)

Features * Supports full set of css pseudo selectors plus many jquery extras: :not, :has, :contains, :gt, :lt, :eq * Use with css or xpath: $doc->find('h3 a'), $doc->find('//h3//a') * Jquery-style functions replace, wrap, unwrap, before after * Nodeset math: $doc->find('a')->minus($doc->find('.skip_me')) * Lots more features that haven't been documented yet., (*5)

If you love Advanced HTML Dom please vote for it here!, (*6)

The Versions

29/12 2016

dev-master

9999999-dev https://github.com/mastermunj/advanced_html_dom

A better drop-in replacement for PHP's simple html dom.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

xml jquery dom xpath

29/12 2016

0.0.4

0.0.4.0 https://github.com/mastermunj/advanced_html_dom

A better drop-in replacement for PHP's simple html dom.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

xml jquery dom xpath

12/08 2015

0.0.3

0.0.3.0 https://github.com/mastermunj/advanced_html_dom

A better drop-in replacement for PHP's simple html dom.

  Sources   Download

MIT

The Requires

  • php >=5.3

 

xml jquery dom xpath

12/08 2015

0.0.1

0.0.1.0 https://github.com/mastermunj/advanced_html_dom

A better drop-in replacement for PHP's simple html dom.

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-dom *

 

xml jquery dom xpath