Skip to content

Commit 4a6ee9e

Browse files
author
Christoph Singer
committedApr 13, 2022
Compatibility with Symfony 6
1 parent fd03f05 commit 4a6ee9e

File tree

5 files changed

+34
-14
lines changed

5 files changed

+34
-14
lines changed
 

‎CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
3.0.0
2+
=====
3+
4+
2022-04-13
5+
6+
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.
7+
8+
Otherwise there are no changes, so it does not require changes in code using this lib.
9+
110
2.0.0
211
=====
312

‎LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2016 Christoph Singer, Web-Agentur 72
1+
Copyright (c) 2012-2022 Christoph Singer
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

‎README.md

+13-9
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ HtmlPageDom
55
[![Latest Version](http://img.shields.io/packagist/v/wa72/htmlpagedom.svg)](https://packagist.org/packages/wa72/htmlpagedom)
66
[![Downloads from Packagist](http://img.shields.io/packagist/dt/wa72/htmlpagedom.svg)](https://packagist.org/packages/wa72/htmlpagedom)
77

8-
> __Important__: BC break in version 2.0 for compatibility with Symfony 4.3, see [UPGRADE.md](UPGRADE.md).
9-
108
`Wa72\HtmlPageDom` is a PHP library for easy manipulation of HTML documents using DOM.
11-
It requires [DomCrawler from Symfony2 components](https://github.com/symfony/DomCrawler) for traversing
9+
It requires [DomCrawler from Symfony components](https://github.com/symfony/DomCrawler) for traversing
1210
the DOM tree and extends it by adding methods for manipulating the DOM tree of HTML documents.
1311

1412
It's useful when you need to not just extract information from an HTML file (what DomCrawler does) but
@@ -29,12 +27,18 @@ the modified page.
2927
prettyprinting (`indent()`) the HTML page.
3028

3129

32-
Requirements
33-
------------
30+
Requirements and Compatibility
31+
------------------------------
32+
33+
Version 3.x:
34+
- PHP 8.x
35+
- [Symfony\Components\DomCrawler](https://github.com/symfony/DomCrawler) 6.x
36+
- [Symfony\Components\CssSelector](https://github.com/symfony/CssSelector) 6.x
3437

35-
- PHP 7.4+
36-
- [Symfony\Components\DomCrawler](https://github.com/symfony/DomCrawler)
37-
- [Symfony\Components\CssSelector](https://github.com/symfony/CssSelector)
38+
Version 2.x:
39+
- PHP 7 or 8
40+
- [Symfony\Components\DomCrawler](https://github.com/symfony/DomCrawler) version 4.x or 5.x
41+
- [Symfony\Components\CssSelector](https://github.com/symfony/CssSelector) version 4.x or 5.x
3842

3943

4044
Installation
@@ -220,5 +224,5 @@ about 5 minutes. After switching to HtmlPageDom the same script doing the same p
220224
one second (all on the same server). HtmlPageDom is really fast.
221225

222226

223-
© 2019 Christoph Singer, Web-Agentur 72. Licensed under the MIT License.
227+
© 2012-2022 Christoph Singer. Licensed under the MIT License.
224228

‎UPGRADE.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Upgrade from 2.x to 3.0
2+
-----------------------
3+
4+
Release 3.x is compatible only with Symfony 6, while older releases are compatible with Symfony up to 5.4.
5+
Otherwise there are no changes in our API, so no changes should be required in your code using this lib. Just upgrade to Version 3 when you upgrade your project to Symfony 6 and all should be well.
6+
7+
18
Upgrade from 1.x to 2.0
29
------------------------
310

‎composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
}
1414
],
1515
"require":{
16-
"php":"^7.4|^8.0",
16+
"php":"^8.0",
1717
"ext-dom":"*",
1818
"ext-libxml":"*",
1919
"ext-mbstring":"*",
20-
"symfony/dom-crawler":"^4.4|^5|^6",
21-
"symfony/css-selector":"^4.4|^5|^6"
20+
"symfony/dom-crawler":"^6",
21+
"symfony/css-selector":"^6"
2222
},
2323
"require-dev": {
2424
"phpunit/phpunit": "^9",
@@ -36,7 +36,7 @@
3636
},
3737
"extra": {
3838
"branch-alias": {
39-
"dev-master": "2.0-dev"
39+
"dev-master": "3.0-dev"
4040
}
4141
}
4242
}

0 commit comments

Comments
 (0)