PEAR logo

PHP_CompatInfo : The Definitive Guide



Why use PHP_CompatInfo ?

Features
System Requirements

None other PHP solution exists to find out the minimum version and the extensions required for a piece of code to run.

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

System Requirements

Mandatory resources:

  • PHP 4.3.0 or newer.
  • tokenizer extension.
  • PEAR 1.4.3 or newer. Since version 1.3.2

Optional resources:

PHP_CompatInfo : The Definitive Guide v 1.4.1 : February 12, 2007