imangazaliev/didom
Simple and fast HTML parser
2.0.1
2.6M downloads/mo
#3667 most downloaded on Packagist
Imangazaliev/DiDOM
What this package is like to depend on
Last release 3 years ago
no release in 18 months
Ships fairly regularly
a new release about every 6 months
Nearly every release is documented
notes for 55 of 61 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
61 releases · first in 2015
0 releases in the last 12 months
see the full history below
Release timeline
61 releases · Aug 2015 to Mar 2023Releases
latest 60 of 61-
2.0.105 Mar 2023Release notes
Open source →- Fix warning
PHP Deprecated: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated
- Fix warning
-
1.16.409 Feb 2021 -
1.16.309 Feb 2021Release notes
Open source →- Fix parsing of a style property in "style" attribute when the value contains a colon
Release notes
Open source →- Fix parsing of a style property in "style" attribute when the value contains a colon
-
1.16.229 Jan 2021 -
1.16.116 Nov 2020 -
1.14.117 Jan 2019Release notes
Open source →- Fix an exception when selecting comment element with XPath
- Add support of
DOMCdataSectionnodes - Add methods
createTextNode(),createComment(),createCdataSection()to the Document class
-
1.11.116 Aug 2017Release notes
Open source →- Fix bug with unregistered PHP functions in XPath in
Document::has()andDocument::count()methods
- Fix bug with unregistered PHP functions in XPath in
-
1.10.628 Jun 2017 -
1.10.519 Jun 2017 -
1.10.411 Jun 2017 -
1.10.320 May 2017Release notes
Open source →- Add
Element::removeChild()andElement::removeChildren()methods - Fix bug in
Element::matches()method Element::matches()method now returns false if node is notDOMElement- Add
Element::hasChildren()method
- Add
-
1.10.215 May 2017Release notes
Open source →- Fix bug in setInnerHtml: can't rewrite existing content
- Throw
InvalidSelectorExceptioninstead ofInvalidArgumentExceptionwhen selector is empty
-
1.10.114 May 2017Release notes
Open source →- Fix attributes
ends-withXPath - Method
Element::matches()now can check children nodes
- Fix attributes
-
1.9.102 Feb 2017Release notes
Open source →- Add ability to search in owner document using current node as context
- Bugs fixed
-
1.9.031 Jan 2017Release notes
Open source →- Methods
Document::appendChild()andElement::appendChild()now return appended node(s) - Add ability to search elements in context
- Methods
-
1.8.826 Nov 2016 -
1.8.713 Nov 2016 -
1.8.630 Oct 2016 -
1.8.525 Oct 2016 -
1.8.422 Oct 2016 -
1.8.319 Oct 2016 -
1.8.216 Oct 2016Release notes
Open source →- Add ability to check that element matches selector
- Add ability counting nodes by selector
- Many minor fixes
-
1.8.114 Oct 2016 -
1.7.402 Sep 2016 -
1.7.328 Jul 2016 -
1.7.227 Jul 2016 -
1.7.124 Jul 2016 -
1.7.001 Jul 2016Release notes
Open source →- Bug fixes
- Add methods
previousSibling,nextSibling,child,firstChild,lastChild,children,getDocumentto the Element - Changed behavior of parent method. Now it returns parent node instead of owner document
-
1.6.806 Jun 2016 -
1.6.722 Apr 2016Nothing published for this version
-
1.6.612 Apr 2016Nothing published for this version
-
1.6.507 Apr 2016 -
1.6.428 Mar 2016 -
1.6.316 Mar 2016 -
1.6.209 Mar 2016 -
1.6.105 Mar 2016Release notes
Open source →- Added the ability to pass an array of nodes to appendChild
- Added the ability to pass options when converting to HTML or XML
- Added the ability to add child elements to the element
-
1.5.105 Jan 2016Release notes
Open source →- Added ability to remove and replace nodes
- Added ability to specify encoding when converting the element into the document
-
1.4.303 Nov 2015Nothing published for this version
-
1.4.225 Oct 2015Nothing published for this version
-
1.4.124 Oct 2015Nothing published for this version
-
1.3.215 Oct 2015 -
1.3.107 Oct 2015Release notes
Open source →- Bugs fixed
- Added the ability to pass element attributes in the constructor
-
1.2.122 Sep 2015Nothing published for this version
-
2.008 May 2022Release notes
Open source →Breaking changes
- Minimum PHP version bumped to 7.2
- Remove
__invokemethod fromDocument,ElementandDocumentFragmentthat was deprecated early - Remove magic property
Element::$tag. UsetagName()method instead - Rename
Element::getDocument()toownerDocument()
What's new
- Add
Node::setInnerXml()method (i. e. forElementandDocumentFragmenttoo)
Release notes
Open source →Breaking changes
- Minimum PHP version bumped to 7.2
- Remove
__invokemethod fromDocument,ElementandDocumentFragmentthat was deprecated early - Remove magic property
Element::$tag. UsetagName()method instead - Rename
Element::getDocument()toownerDocument()
What's new
- Add
Node::setInnerXml()method (i. e. forElementandDocumentFragmenttoo)
-
1.817 Sep 2016Release notes
Open source →- Bug fixes
- Add support of ~ selector
- Add ability to direct search by CSS selector
- Add setInnerHtml method
- Add attributes method
-
1.618 Feb 2016Release notes
Open source →- Added support for XML
- Added the ability to search element by part of attribute name or value
- Added support for pseudo-class "contains"
- Added the ability to clone a node
-
1.507 Dec 2015Release notes
Open source →- Fixed problem with incorrect encoding
- Added ability to set the value of the element
- Added ability to specify encoding when creating document
-
1.421 Oct 2015Release notes
Open source →- Added the ability to specify the return type element (
DiDom\ElementorDOMElement)
- Added the ability to specify the return type element (
-
1.326 Sep 2015 -
1.231 Aug 2015Release notes
Open source →- Bugs fixed
- Added the ability to compare Element\Document
- Added the ability to format HTML code of the document when outputting
-
1.1827 Jul 2021Release notes
Open source →- Fix a bug when a call of
Element::previousSibling()with selector returns a previous sibling when there is not matching element
Release notes
Open source →- Fix a bug when a call of Element::previousSibling() with selector returns a previous sibling when there is not matching element
- Fix a bug when a call of
-
1.1726 Jul 2021 -
1.1612 May 2020Release notes
Open source →- Add
Node::insertSiblingBefore()andNode::insertSiblingAfter()methods for inserting sibling nodes
Release notes
Open source →- Add
Node::insertSiblingBefore()andNode::insertSiblingAfter()methods for inserting sibling nodes
- Add
-
1.1521 Jan 2020 -
1.1417 Dec 2018 -
1.1308 Dec 2017Release notes
Open source →- Add
Element::outerHtml()method - Add
Element::prependChild()method - Add
Element::insertBefore()andElement::insertAfter()methods - Add
Element::style()method for more convenient inline styles manipulation - Add
Element::classes()method for more convenient class manipulation
- Add
-
1.1228 Aug 2017 -
1.1113 Aug 2017Release notes
Open source →- Add
Element::isElementNode()method - Add ability to retrieve only specific attributes in
Element::attributes()method - Add
Element::removeAllAttributes()method - Add ability to specify selector and node type in
Element::previousSibling()andElement::nextSibling()methods - Add
Element::previousSiblings()andElement::nextSiblings()methods - Many minor fixes and improvements
- Add
-
1.1014 May 2017Release notes
Open source →- Fix HTML saving mechanism
- Throw
InvalidSelectorExceptioninstead ofRuntimeExceptionin Query class
-
1.123 Aug 2015