![]() | |
The current version of PHP_CompatInfo requires PHP 5.2.0 or newer to run. If you don’t already have an up-to-date version of PHP installed it can be downloaded from the official PHP website http://www.php.net/. |
PHP_CompatInfo should be installed using the [PEAR Installer](http://pear.php.net/). 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.
The PEAR channel (bartlett.laurent-laville.org) that is used to distribute PHP_CompatInfo needs to be registered with the local PEAR environment. Furthermore, components that PHP_CompatInfo depends upon is hosted on the eZ Components PEAR channel (components.ez.no), and on the PHPUnit PEAR channel (pear.phpunit.de).
$ pear channel-discover bartlett.laurent-laville.org Adding Channel "bartlett.laurent-laville.org" succeeded Discovery of channel "bartlett.laurent-laville.org" succeeded $ pear channel-discover components.ez.no Adding Channel "components.ez.no" succeeded Discovery of channel "components.ez.no" succeeded $ pear channel-discover pear.phpunit.de Adding Channel "pear.phpunit.de" succeeded Discovery of channel "pear.phpunit.de" succeeded
This has to be done only once. Now the PEAR Installer can be used to install packages from the Bartlett channel.
$ pear install bartlett/PHP_CompatInfo downloading PHP_CompatInfo-2.1.0.tgz ... Starting to download PHP_CompatInfo-2.1.0.tgz (741,262 bytes) .........................done: 741,262 bytes install ok: channel://bartlett.laurent-laville.org/PHP_CompatInfo-2.1.0
After the installation you can find the PHP_CompatInfo source files inside your local PEAR directory.