2017 © Pedro Peláez
 

library dom-plus

A DOMDocument class wrapper that adds some simple improvements

image

dcarbone/dom-plus

A DOMDocument class wrapper that adds some simple improvements

  • Wednesday, September 17, 2014
  • by dcarbone
  • Repository
  • 1 Watchers
  • 4 Stars
  • 91 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 15 Versions
  • 2 % Grown

The README.md

dom-plus

A simple DOMDocument class wrapper that adds some simple improvements, (*1)

Inclusion in your Composer application

"require" : {
    "dcarbone/dom-plus" : "1.3.*"
}

This class utilizes the PHP DOMDocument method registerNodeClass to extend several classes., (*2)

What this means is that whenever create a new instance of DCarbone\DOMPlus\DOMDocumentPlus, all DOMNode, DOMElement, DOMText, and DOMCharacterData objects contained within the document are instantiated as the modified classes I have included in this library., (*3)

So if you execute:, (*4)

$dom = new DOMDocumentPlus;

$div = $dom->createElement('div');

echo get_class($div);

Instead of seeing DOMElement, you will see DCarbone\DOMPlus\DOMElementPlus. Same goes for:, (*5)

$text = $dom->createTextNode('text!'); // returns DCarbone\DOMPlus\DOMTextPlus

Additionally, these methods will also exist if you try to consume XML with this class. However I have not done any testing with XML documents!. If you use this with XML and find issues, please report them, (*6)

INodePlus

This interface is applied to all concrete classes provided by this library. Click the link above to peruse the provided methods., (*7)

DOMDocumentPlus

DOMDocumentPlus has some enhancements inspired by Artem Russakovskii's SmartDOMDocument Class., (*8)

DOMElementPlus

DOMElementPlus contains some additional HTML-specific features, such as style and class attribut helper methods, (*9)

The Versions

17/09 2014

dev-master

9999999-dev https://github.com/dcarbone/dom-plus

A DOMDocument class wrapper that adds some simple improvements

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • lib-libxml *

 

by Daniel Carbone

php domdocument smartdomdocument

29/04 2014

1.3.1

1.3.1.0 https://github.com/dcarbone/dom-plus

A DOMDocument class wrapper that adds some simple improvements

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • lib-libxml *

 

by Daniel Carbone

php domdocument smartdomdocument

21/04 2014

1.3.0

1.3.0.0 https://github.com/dcarbone/dom-plus

A DOMDocument class wrapper that adds some simple improvements

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • lib-libxml *

 

by Daniel Carbone

php domdocument smartdomdocument

13/04 2014

1.2.2

1.2.2.0 https://github.com/dcarbone/dom-plus

A DOMDocument class wrapper that adds some simple improvements

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • lib-libxml *

 

by Daniel Carbone

php domdocument smartdomdocument

12/04 2014

1.2.1

1.2.1.0 https://github.com/dcarbone/dom-plus

A DOMDocument class wrapper that adds some simple improvements

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • lib-libxml *

 

by Daniel Carbone

php domdocument smartdomdocument

12/04 2014

1.2.0

1.2.0.0 https://github.com/dcarbone/dom-plus

A DOMDocument class wrapper that adds some simple improvements

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • lib-libxml *

 

by Daniel Carbone

php domdocument smartdomdocument

12/04 2014

1.1.7

1.1.7.0 https://github.com/dcarbone/dom-plus

A DOMDocument class wrapper that adds some simple improvements

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • lib-libxml *

 

by Daniel Carbone

php domdocument smartdomdocument

06/01 2014

1.1.6

1.1.6.0 https://github.com/dcarbone/dom-plus

A DOMDocument class wrapper that adds some simple improvements

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • lib-libxml *

 

by Daniel Carbone

php domdocument smartdomdocument

06/01 2014

1.1.5

1.1.5.0 https://github.com/dcarbone/dom-plus

A DOMDocument class wrapper that adds some simple improvements

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • lib-libxml *

 

by Daniel Carbone

php domdocument smartdomdocument

05/01 2014

1.1.4

1.1.4.0 https://github.com/dcarbone/dom-plus

A DOMDocument class wrapper that adds some simple improvements

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • lib-libxml *

 

by Daniel Carbone

php domdocument smartdomdocument

19/12 2013

1.1.3

1.1.3.0 https://github.com/dcarbone/dom-plus

A DOMDocument class wrapper that adds some simple improvements

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • lib-libxml *

 

by Daniel Carbone

php domdocument smartdomdocument

19/12 2013

1.1.2

1.1.2.0 https://github.com/dcarbone/dom-plus

A DOMDocument class wrapper that adds some simple improvements

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • lib-libxml *

 

by Daniel Carbone

php domdocument smartdomdocument

19/12 2013

1.1.1

1.1.1.0 https://github.com/dcarbone/dom-plus

A DOMDocument class wrapper that adds some simple improvements

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • lib-libxml *

 

by Daniel Carbone

php domdocument smartdomdocument

19/12 2013

1.1.0

1.1.0.0 https://github.com/dcarbone/dom-plus

A DOMDocument class wrapper that adds some simple improvements

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • lib-libxml *

 

by Daniel Carbone

php domdocument smartdomdocument

18/12 2013

1.0.0

1.0.0.0 https://github.com/dcarbone/dom-plus

A DOMDocument class wrapper that adds some simple improvements

  Sources   Download

MIT

The Requires

  • php >=5.3.3
  • lib-libxml *

 

by Daniel Carbone

php domdocument smartdomdocument