j0k3r/php-readability
Extracts the main article content and title from messy web pages in PHP. Improved fork of php-readability with tests, namespacing, and optional HTML cleanup via Tidy (or libxml). Supports PSR-3 logging for debugging.
[!NOTE] Starting with php-readability 2.0.9,
loadHtml()can be called independently of any call toinit().
loadHtml() as a public method by @Kdecherf in https://github.com/j0k3r/php-readability/pull/113init() by @Kdecherf in https://github.com/j0k3r/php-readability/pull/113strict_types declaration by @jtojnar in https://github.com/j0k3r/php-readability/pull/119Full Changelog: https://github.com/j0k3r/php-readability/compare/2.0.8...2.0.9
tidy_repair_string by @j0k3r in https://github.com/j0k3r/php-readability/pull/112Full Changelog: https://github.com/j0k3r/php-readability/compare/1.3.0...1.3.1
tidy_repair_string by @j0k3r in https://github.com/j0k3r/php-readability/pull/111Full Changelog: https://github.com/j0k3r/php-readability/compare/2.0.7...2.0.8
Support for PHP < 7.2 has been dropped as well.
Full Changelog: https://github.com/j0k3r/php-readability/compare/1.2.13...1.3.0
Full Changelog: https://github.com/j0k3r/php-readability/compare/1.2.12...1.2.13
title precedes meta[charset] by @jtojnar in https://github.com/j0k3r/php-readability/pull/106Full Changelog: https://github.com/j0k3r/php-readability/compare/2.0.6...2.0.7
html[lang] by @jtojnar in https://github.com/j0k3r/php-readability/pull/104Full Changelog: https://github.com/j0k3r/php-readability/compare/2.0.5...2.0.6
Full Changelog: https://github.com/j0k3r/php-readability/compare/1.2.11...1.2.12
Full Changelog: https://github.com/j0k3r/php-readability/compare/2.0.4...2.0.5
Full Changelog: https://github.com/j0k3r/php-readability/compare/1.2.10...1.2.11
Full Changelog: https://github.com/j0k3r/php-readability/compare/2.0.3...2.0.4
Full Changelog: https://github.com/j0k3r/php-readability/compare/2.0.2...2.0.3
psr/log 2.0 & 3.0 by @j0k3r in https://github.com/j0k3r/php-readability/pull/79Full Changelog: https://github.com/j0k3r/php-readability/compare/2.0.1...2.0.2
::clean() method instead of preg_replace by @Kdecherf in https://github.com/j0k3r/php-readability/pull/74 (backported from 1.x)Full Changelog: https://github.com/j0k3r/php-readability/compare/2.0.0...2.0.1
::clean() method instead of preg_replace by @Kdecherf in https://github.com/j0k3r/php-readability/pull/74Full Changelog: https://github.com/j0k3r/php-readability/compare/1.2.9...1.2.10
loadHtml() was originally called in __construct avoiding ability to use a proper logger (because it's defined after), see https://github.com/j0k3r/php-readability/issues/59. The method has now moved to init() to fix that.isPhrasingContent conditions, text node replacement by @Kdecherf in https://github.com/j0k3r/php-readability/pull/73Full Changelog: https://github.com/j0k3r/php-readability/compare/1.2.9...2.0.0
Full Changelog: https://github.com/j0k3r/php-readability/compare/1.2.8...1.2.9
figure tags without ending by @Kdecherf in https://github.com/j0k3r/php-readability/pull/66Full Changelog: https://github.com/j0k3r/php-readability/compare/1.2.7...1.2.8
The main change is related to the drop of electrolinux/php-html5lib (which was quite old and incompatible with the upcoming Composer 2.0) in flavor to masterminds/html5 (which is still maintained, compatible with Composer 2.0 and already used by Symfony).
That replacement should be transparent but if you find an issue, don't hesitate to report them.
Also, the HTML5 parser wasn't the one defined by default, so if you never forced the parser option, you won't notice any changes.
PRs merged:
:warning: Drop PHP < 5.6 support (it's about time..)
Other changes are related to the way we use Tidy (:kissing_closed_eyes: @Kdecherf):
tidy_repair_string instead of tidy_parse_string+tidy_clean_repair #42Other small changes:
testPostFilters() leading to failure #36How can I help you explore Laravel packages today?