This document will help you upgrading PHPScraper from an earlier version to later versions.
-
The namespace has been adjusted from
\spekulatius
to\Spekulatius\PHPScraper
. Anyuse
statements or other class references need to updated accordingly:-use spekulatius\phpscraper; +use Spekulatius\PHPScraper\PHPScraper;
or
-$web = new \spekulatius\phpscraper; +$web = new \Spekulatius\PHPScraper\PHPScraper;
- Support for PHP 7.x was dropped. PHP 8.0 is the minimum for v2.
- The publicly accessible function
parseXML
was renamed toparseXml
. - The codebase has been analysed with PHPStan and hardened manually. Due to this, some return types have changed. See v2 pull request for details.