About
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 8.0 for parsing source code in a format PHP 5.2 to PHP 8.3
Features
- Parse source code in format PHP 5.2 to PHP 8.3
- Detect PHP features for each Major/minor versions
- Detect versions of all directives, constants, functions, classes, interfaces of 100 extensions and more
- Display/Inspect list of extensions, and their versions supported
Usage
Learn more about different usages with console, Docker and programmatically.
See Getting-Started's Guide to know how to use it.
Installation
Learn how to install
CompatInfo
application in different way.
Architecture
As a developer you want to learn more about CompatInfo architecture.
Configurations
Load a configuration for CLI Application with the
--config
option.
See Configuration(s)
TIP Read How to Load --config With Services in Symfony Console to learn more.
Conditional Code
Learn what code is consider as conditional, detected or not (since CompatInfo 5.4)
See Conditional Code
Exclusions
Sometimes you don't want to scan a certain directory while analysing data source.
Learn how to do from console (CLI) or php script (API).