Download the PHP package dcarbone/dom-plus without Composer
On this page you can find all versions of the php package dcarbone/dom-plus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dcarbone/dom-plus
More information about dcarbone/dom-plus
Files in dcarbone/dom-plus
Package dom-plus
Short Description A DOMDocument class wrapper that adds some simple improvements
License MIT
Homepage https://github.com/dcarbone/dom-plus
Informations about the package dom-plus
dom-plus
A simple DOMDocument class wrapper that adds some simple improvements
Inclusion in your Composer application
This class utilizes the PHP DOMDocument method registerNodeClass to extend several classes.
What this means is that whenever create a new instance of , all DOMNode, DOMElement, DOMText, and DOMCharacterData objects contained within the document are instantiated as the modified classes I have included in this library.
So if you execute:
Instead of seeing DOMElement, you will see DCarbone\DOMPlus\DOMElementPlus. Same goes for:
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
INodePlus
This interface is applied to all concrete classes provided by this library. Click the link above to peruse the provided methods.
DOMDocumentPlus
DOMDocumentPlus has some enhancements inspired by Artem Russakovskii's SmartDOMDocument Class.
DOMElementPlus
DOMElementPlus contains some additional HTML-specific features, such as style and class attribut helper methods
All versions of dom-plus with dependencies
lib-libxml Version *