bartlett / php-compatinfo
Find out the minimum version and the extensions required for a piece of code to run
7.2.6
2026-04-22 04:43 UTC
Requires
- php: ^8.1
- composer-runtime-api: ^2.1
- ext-json: *
- ext-pcre: *
- ext-spl: *
- bartlett/php-compatinfo-db: ^6.4.2
- bartlett/sarif-php-sdk: ^2.1
- doctrine/collections: ^2.1
- nikic/php-parser: ^5.0
- psr/log: ^3.0
- ramsey/uuid: ^4.0
- symfony/config: ^6.4 || ^7.0
- symfony/console: ^6.4 || ^7.0
- symfony/dependency-injection: ^6.4 || ^7.0
- symfony/event-dispatcher: ^6.4 || ^7.0
- symfony/finder: ^6.4 || ^7.0
- symfony/serializer: ^6.4 || ^7.0
- symfony/stopwatch: ^6.4 || ^7.0
Requires (Dev)
This package is auto-updated.
Last update: 2026-05-20 15:35:46 UTC
README
PHP CompatInfo
PHP CompatInfo is a library that can find the minimum version and the extensions required for a piece of code to run.
Running on PHP greater or equal than 7.4 for parsing source code in a format PHP 5.2 to PHP 8.5
Versions
| Releases | Branch | PHP | Packagist | License | Documentation |
|---|---|---|---|---|---|
| Stable v5.5.x | |||||
| Stable v6.5.x | |||||
| Stable v7.0.x | |||||
| Stable v7.1.x | |||||
| Stable v7.2.x |
Documentation
All the documentation is available on website, generated from the docs folder.
Contributors
- Laurent Laville (Lead Dev)
- Thanks to Nikita Popov who wrote a marvellous PHP Parser.
- Thanks also to Remi Collet, a contributor of first hours.
- Credits to Davey Shafik. He introduced his proposal in 2004, that gave birth of a PEAR package named PHP_CompatInfo.