2017 © Pedro Peláez
 

library advanced-html-dom

Bavix Advanced HTML DOM.

image

bavix/advanced-html-dom

Bavix Advanced HTML DOM.

  • Tuesday, May 29, 2018
  • by REZ1DENT3
  • Repository
  • 0 Watchers
  • 0 Stars
  • 37 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 20 Forks
  • 0 Open issues
  • 9 Versions
  • 48 % Grown

The README.md

Advanced HTML DOM

Scrutinizer Code Quality Code Coverage Build Status Code Intelligence Status, (*1)

Package Rank Latest Stable Version Latest Unstable Version License composer.lock, (*2)

  • Vendor: bavix
  • Package: Advanced HTML DOM
  • Version: Latest Stable Version
  • PHP Version: 7.1+
  • Composer: composer require bavix/advanced-html-dom

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

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

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

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

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 of stuff that even BeautifulSoup and Nokogiri can't do: $doc->search('span:lt(7):not(.foo)') * Lots more features that haven't been documented yet., (*7)

How to install it via composer

composer req bavix/advanced-html-dom

The Versions

29/05 2018

dev-master

9999999-dev https://github.com/bavix/advanced-html-dom

Bavix Advanced HTML DOM.

  Sources   Download

MIT

The Requires

  • ext-xml *
  • php ^7.1

 

The Development Requires

parser css html advanced dom selector

29/05 2018

dev-scrutinizer-patch-2

dev-scrutinizer-patch-2 https://github.com/bavix/advanced-html-dom

Bavix Advanced HTML DOM.

  Sources   Download

MIT

The Requires

  • php ^7.1
  • ext-xml *

 

The Development Requires

parser css html advanced dom selector

20/05 2018

1.0.5

1.0.5.0 https://github.com/bavix/advanced-html-dom

Bavix Advanced HTML DOM.

  Sources   Download

MIT

The Requires

  • php ^7.1
  • ext-xml *

 

The Development Requires

parser css html advanced dom selector

19/05 2018

dev-scrutinizer-patch-1

dev-scrutinizer-patch-1 https://github.com/bavix/advanced-html-dom

Bavix Advanced HTML DOM.

  Sources   Download

MIT

The Requires

  • php ^7.1
  • ext-xml *

 

The Development Requires

parser css html advanced dom selector

18/05 2018

1.0.4

1.0.4.0 https://github.com/bavix/advanced-html-dom

Bavix Advanced HTML DOM.

  Sources   Download

MIT

The Requires

  • php ^7.1
  • ext-xml *

 

The Development Requires

parser css html advanced dom selector

07/03 2018

1.0.3

1.0.3.0 https://github.com/bavix/advanced-html-dom

Bavix Advanced HTML DOM.

  Sources   Download

MIT

The Requires

  • php ^7.1
  • ext-xml *

 

The Development Requires

parser css html advanced dom selector

26/12 2017

1.0.2

1.0.2.0 https://github.com/bavix/advanced-html-dom

Bavix Advanced HTML DOM.

  Sources   Download

MIT

The Requires

  • php ^7.1
  • ext-xml *

 

The Development Requires

parser css html advanced dom selector

25/10 2017

1.0.1

1.0.1.0 https://github.com/bavix/advanced-html-dom

Bavix Advanced HTML DOM.

  Sources   Download

MIT

The Requires

  • php ^7.0
  • ext-dom *
  • ext-xml *

 

parser css html advanced dom selector

13/10 2017

1.0.0

1.0.0.0 https://github.com/bavix/advanced-html-dom

Bavix Advanced HTML DOM.

  Sources   Download

MIT

The Requires

  • php ^7.0
  • ext-dom *
  • ext-xml *

 

parser css html advanced dom selector