What is PHP_CompatInfo ?
PHP_CompatInfo (PCI) is designed to parse a file/folder/script/array
to find out the minimum version and extensions required for it to run.
PHP_CompatInfo,
is available via PEAR,
which offers high quality PHP packages for many purposes.
Davey Shafik
was the first and only leader on PCI when
proposal
was accepted (March 2004) officially by the PEAR community.
Until i ( Laurent Laville )
propose my patch to a better PHP 4/5 detection
(bug #7813)
and became a new package leader with release 1.0.1 (June 2006).
Features
- parse a single file.
- parse a folder/directory .
- parse an array (list of file).
- ability to give a list of functions to ignore when calculating the version needed.
- ability to give a list of directories to ignore when calculating the version needed.
- ability to go recursively or not into folder to find files.
- ability to reduce or extends list of extensions to parse for PHP code.
- ability to give a list of constants to ignore when calculating the version needed. Since version 1.2.0
- ability to get list of functions related to a PHP version (or a subset). Since version 1.2.0
- ability to give a list of (related functions of) php modules/extensions
to ignore when calculating the version needed.
Since version 1.4.0
- ability to give a list of (related functions of) php versions
to ignore when calculating the version needed.
Since version 1.4.0
- ability to exclude from parsing scope, some functions, extensions, constants,
based on conditionnal code.
Since version 1.7.0
- ability to know conditional code (such as function_exists) used by php scripts.
Since version 1.7.0
Specifications
Supported Platforms
Operating System independent.
System Requirements
See Download tab to know minimum and latest versions of each resource (mandatory, optional).
Mandatory resources:
Optional resources: