Before you begin, ensure that you have at least PHP 5.2.1 installed.

PEAR

PHP_CompatInfo should be installed using the PEAR Installer. This installer is the backbone of PEAR, which provides a distribution system for PHP packages, and is shipped with every release of PHP since version 4.3.0.

Registering the channel:

$ pear channel-discover bartlett.laurent-laville.org

Installing the latest version available:

$ pear install bartlett/PHP_CompatInfo

Installing a specific version:

$ pear install bartlett/PHP_CompatInfo-2.12.0

GNU/Linux RPM

PHP_CompatInfo could be installed as RPM, using the package installer.

In Fedora, from official repository.

In Enterprise Linux (RHEL, CentOS, Scientific Linux, Oracle Linux, …), from the EPEL repository.

# yum install php-bartlett-PHP-CompatInfo

Git

You can also clone the project.

$ git clone git://github.com/llaville/php-compat-info.git && cd php-compat-info

Copy the PHP sub-folder in a Bartlett directory accessible by your include_path.

When include_path is equals to .:/php/includes

$ mkdir /php/includes/Bartlett && cp PHP/* /php/includes/Bartlett
Warning Don’t forget to install also all others required dependencies: PHP_Reflect, Console_CommandLine.

Check that it works. Run the local phpci command.

$ php scripts/phpci --version

That should give expected result:

phpci version DEV.