mirror of
https://github.com/j0k3r/php-readability.git
synced 2026-09-27 06:26:17 +00:00
PHP-CS-Fixer, PHPStan and Rector regularly introduce changes which break CI in minor versions, forcing us to mix unrelated changes with CI fixes. Let’s pin the minor version and update it on our own time e.g. with Dependabot. This is also what PHPStan suggests for projects not using `composer.lock`: https://phpstan.org/user-guide/backward-compatibility-promise#minimizing-impact-of-type-inference-changes
56 lines
1.8 KiB
JSON
56 lines
1.8 KiB
JSON
{
|
|
"name": "j0k3r/php-readability",
|
|
"type": "library",
|
|
"description": "Automatic article extraction from HTML",
|
|
"keywords": ["article extraction","content extraction","extraction","article","content","html"],
|
|
"license": "Apache-2.0",
|
|
"authors": [{
|
|
"name": "Jeremy Benoist",
|
|
"email": "jeremy.benoist@gmail.com",
|
|
"homepage": "http://www.j0k3r.net",
|
|
"role": "Developer"
|
|
},{
|
|
"name": "DitherSky",
|
|
"homepage": "https://github.com/Dither",
|
|
"role": "Developer (https://github.com/Dither/full-text-rss)"
|
|
},{
|
|
"name": "Keyvan Minoukadeh",
|
|
"email": "keyvan@keyvan.net",
|
|
"homepage": "http://keyvan.net",
|
|
"role": "Developer (ported original JS code to PHP)"
|
|
},{
|
|
"name": "Arc90",
|
|
"homepage": "http://arc90.com",
|
|
"role": "Developer (original JS version)"
|
|
}],
|
|
"require": {
|
|
"php": ">=7.4.0",
|
|
"ext-mbstring": "*",
|
|
"psr/log": "^1.0.1 || ^2.0 || ^3.0",
|
|
"masterminds/html5": "^2.7"
|
|
},
|
|
"require-dev": {
|
|
"friendsofphp/php-cs-fixer": "3.94.2",
|
|
"monolog/monolog": "^1.24|^2.1",
|
|
"symfony/phpunit-bridge": "^4.4|^5.3|^6.0|^7.0",
|
|
"phpstan/phpstan": "2.2.2",
|
|
"phpstan/phpstan-phpunit": "2.0.16",
|
|
"rector/rector": "2.4.6"
|
|
},
|
|
"suggest": {
|
|
"ext-tidy": "Used to clean up given HTML and to avoid problems with bad HTML structure."
|
|
},
|
|
"autoload": {
|
|
"psr-4": { "Readability\\": "src/" }
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": { "Tests\\Readability\\": "tests/" }
|
|
},
|
|
"scripts": {
|
|
"fix": "php-cs-fixer fix --verbose --diff",
|
|
"phpstan": "phpstan analyze --memory-limit 512M",
|
|
"rector": "rector process",
|
|
"test": "simple-phpunit -v"
|
|
}
|
|
}
|