Skip to content

quafzi/php-compat-info

 
 

Repository files navigation

PHP_CompatInfo

PHP_CompatInfo is a library that find out the minimum version and the extensions required for a piece of code to run.

Installation

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.

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.9.0.tgz ...
Starting to download PHP_CompatInfo-2.9.0.tgz (747,635 bytes)
.........................done: 747,635 bytes
install ok: channel://bartlett.laurent-laville.org/PHP_CompatInfo-2.9.0

After the installation you can find the PHP_CompatInfo source files inside your local PEAR directory.

Documentation

The documentation for PHP_CompatInfo is available in different formats:

About

Library that find out the minimum version and the extensions required for a piece of code to run

Resources

License

Stars

Watchers

Forks

Packages

No packages published