NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #3539 most downloaded on Packagist
jQuery-inspired DOM manipulation extension for Symfony's Crawler
Latest stable
v3.1.0
Last release 10 months ago
26 Jan 2026
Release timing varies
gaps range from 2 weeks to 2.4 years
Most releases are documented
notes for 21 of 30 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
31 releases · first in 2013
Drag across the ruler to compare, or tap a release to open it.
Add support for Symfony 8, thanks to @ttk . Minimum PHP requirement raised to 8.1
Add support for Symfony 8, thanks to @ttk.
Minimum PHP requirement raised to 8.1
Support symfony 7. Thanks to @pfuhrmann
Support symfony 7. Thanks to @pfuhrmann
Prevent removal of closing tags in strings containing html in embedded javascript
Prevent removal of closing tags in strings containing html in embedded javascript
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Changed some method signatures (added argument type hints and return types) in HtmlPageCrawler for compatibility with the base Crawler class from Symf
Changed some method signatures (added argument type hints and return types) in HtmlPageCrawler for compatibility with the base Crawler class from Symfony 6. So, this release is only compatible with Symfony 6 and up.
Otherwise there are no changes, so it does not require changes in code using this lib.
Improved compatibility with PHP 8.3 for the 2.x version (compatible with Symfony 4 & 5)
Improved compatibility with PHP 8.3 for the 2.x version (compatible with Symfony 4 & 5)
Prevent removal of closing tags in strings containing html in embedded javascript
Prevent removal of closing tags in strings containing html in embedded javascript
Includes fix for libxml deprecations.
Includes fix for libxml deprecations.
Dependencies: Allow Symfony 5
Dependencies: Allow Symfony 5
HtmlPageDom is now compatible with Symfony 4.3 and up.
HtmlPageDom is now compatible with Symfony 4.3 and up.
2019-10-15
BC BREAK for compatibility with Symfony 4.3 and up
HtmlPageCrawler::html() is now just the parent Crawler::html() and acts as getter only.
Setting HTML content via HtmlPageCrawler::html($html) is not possible any more,
use HtmlPageCrawler::setInnerHtml($html) instead
HtmlPageCrawler::text() is now just the parent Crawler::text() and acts as getter only
that returns the text content from the first node only. For setting text content, use HtmlPageCrawler::setText($text) instead.
HtmlPageCrawler::attr() is now just the parent Crawler::attr() and acts as getter only.
For setting attributes use HtmlPageCrawler::setAttribute($name, $value) instead
new method HtmlPageCrawler::getCombinedText() that returns the combined text from all nodes (as jQuery's text() function does and previous versions of HtmlPageCrawler::text() did)
removed method HtmlPageCrawler::isDisconnected()
First development release with changed API for compatibility with Symfony 4.3
First development release with changed API for compatibility with Symfony 4.3
More deprecations in preparation of v2
More deprecations in preparation of v2
2019-10-15
Bugfix: setText() should convert special chars. Closes #34.
Bugfix: setText() should convert special chars. Closes #34.
2019-06-28
Preparation for a smooth migration to 2.x / Symfony 4.3: deprecate setter use of html() and text(), deprecate getInnerHtml(), new methods setText() an…
Preparation for a smooth migration to 2.x / Symfony 4.3: deprecate setter use of html() and text(), deprecate getInnerHtml(), new methods setText() and getCombinedText()
2019-05-17
Preparation for a smooth migration to 2.x / Symfony 4.3:
Mark this version as incompatible to Symfony 4.3
Mark this version as incompatible to Symfony 4.3
2019-04-18
Updated composer requirements, PHPUnit tests and travis configuration to make sure it works with symfony/dom-crawler 3.4 and 4.x and PHP 7.2
Updated composer requirements, PHPUnit tests and travis configuration to make sure it works with symfony/dom-crawler 3.4 and 4.x and PHP 7.2
new method unwrapInner (thanks to @ttk)
unwrapInner (thanks to @ttk)$crawler->length property like in Javascript instead of count($crawler)Work with symfony/dom-crawler 3.x
Work with symfony/dom-crawler 3.x
Since Symfony 2.8.3, HtmlPageDom now works with DomCrawler from Symfony 2.8. Still no support for DomCrawler from Symfony 3.
Since Symfony 2.8.3, HtmlPageDom now works with DomCrawler from Symfony 2.8. Still no support for DomCrawler from Symfony 3.
Nothing published for this version
new methods HtmlPage::minify() and HtmlPage::indent() for compressing or nicely indenting the HTML document
new methods HtmlPage::minify() and HtmlPage::indent() for compressing or nicely indenting the HTML document
2015-11-06
HtmlPage::minify() and HtmlPage::indent() for compressing or nicely indenting the HTML document. These
functions rely on the package wa72/html-pretty-min that is suggested in composer.json.Changed required Symfony version to be less than 2.8 because of breaking changes in the Crawler component. Removed "semi-official support" for HHVM be…
Changed required Symfony version to be less than 2.8 because of breaking changes in the Crawler component. Removed "semi-official support" for HHVM because Travis tests on HHVM fail again.
Nothing published for this version
Travis tests on HHVM are no longer allowed to fail, so HHVM is officially supported. Minor code changes.
Travis tests on HHVM are no longer allowed to fail, so HHVM is officially supported. Minor code changes.
Some functions added or changed for more compatibility with jQuery. See the changelog.
Some functions added or changed for more compatibility with jQuery. See the changelog.
2015-05-20
text() function now returns combined text of all elements in set (as jQuery does; previously only the nodeValue of
the first element was returned) and can act as a setter text($string) that sets the nodeValue of all elements to
the specified string
function hasClass now returns true if any of the elements in the Crawler has the specified class (previously,
only the first element was checked).
new function makeClone as equivalent to jQuery's clone function ("clone" is not a valid function name in PHP).
As previously, you can alternatively use PHP's clone operator: $r = $c->makeClone() is the same as $r = clone $c,
but the new function allows chaining.
new function removeAttr aliasing removeAttribute for compatibility with jQuery
appendTo, insertBefore, insertAfter, and replaceAll now always return a new Crawler object containing
the aggregate set of all elements appended to the target elements (this is the behavior of jQuery 1.9 and newer).
attr function can now act as setter attr($name, $value) which is an alias for setAttribute($name, $value)
(previously it accepted only one argument and was a getter equivalent to getAttribute($name) only, like it is
in parent DomCrawler)
attr($name) and getAttribute($name) now always return null if the attribute does not exist (previously, an empty
string was returned when used with Symfony 2.3)
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.