crscheid / php-article-extractor

A PHP library to extract article text from web pages
45 stars 18 forks source link

Unable to install with fivefilters/readability.php #39

Open DReffects opened 2 years ago

DReffects commented 2 years ago

I've added php-article-extractor via

"crscheid/php-article-extractor": "2.5.1"

and also have

"fivefilters/readability.php": "dev-master",

in my composer.json

I am getting

Can this be fixed? :)

crscheid commented 2 years ago

You'd get this error when your project dependencies are calling for "fivefilters/readability.php": "dev-master" while this library is using "fivefilters/readability.php": "2.1.0"

It looks like readability has been updated since I locked the dependency to 2.1.0. To make this library compatible with dev-master, we'd have to see what changed in readability and see if it is compatible. Though I hesitate to do that if the codebase is still being updated and not tagged as a release. Doing so could cause other future breaks if the codebase changes over time.

Do you know what from your project dependencies is looking for "fivefilters/readability.php": "dev-master"? If you are unsure, try setting your dependency to "fivefilters/readability.php": "2.1.0", instead.