Installing PHP_CompatInfo

Installing PHP_CompatInfo – two solutions: auto and manual

Installation Process

PHP_CompatInfo (alias PCI) should be installed using the PEAR Installer. This installer which provides a distribution system for PHP packages and full application, support channels architecture and custom file tasks. Learn more about new features in PEAR 1.4

Although using the PEAR Installer is the most easy way to install PCI, you can install PCI manually. For manual installation, do the following (steps 11-12 are for version 1.9.0+):

  1. Download the most recent release archive from http://pear.php.net/get/PHP_CompatInfo/ and extract it to a directory that is listed in the include_path of your php.ini configuration file.

  2. Prepare the pci.bat script:

    For windows users only
    1. Rename the compatinfo.bat script to pci.bat.

    2. Replace the @php_bin@ string in it with the path to your PHP command-line interpreter. Replace also the @bin_dir@ string in it with the directory where you will put the pci script.

    3. Copy it to a directory that is in your PATH

  3. Prepare the pci script:

    1. Rename the pci.php file to pci.

    2. Replace the @php_bin@ string in it with the path to your PHP command-line interpreter (usually /usr/bin/php).

    3. Copy it to a directory that is in your PATH and make it executable (chmod +x pci), or for windows users copy it to the directory corresponding to @bin_dir@ string (see previous modification).

  4. Prepare the html renderer script (CompatInfo/Renderer/Html.php):

    1. Replace the @data_dir@ string in it with the path where you have extracted the downloaded package.

    2. If you do not move the stylesheet pci.css to another location, remove the line with . '@package_name@' . DIRECTORY_SEPARATOR.

  5. Download also, release archive of PEAR::Console_Table package version 1.0.5 (or better), from http://pear.php.net/package/Console_Table/download and extract it to a directory that is listed in the include_path of your php.ini configuration file.

  6. Download also, release archive of PEAR::Console_GetArgs package version 1.3.3 (or better), from http://pear.php.net/package/Console_GetArgs/download and extract it to a directory that is listed in the include_path of your php.ini configuration file.

  7. Download also, release archive of PEAR::File_Find package version 1.3.0 (or better), from http://pear.php.net/package/File_Find/download and extract it to a directory that is listed in the include_path of your php.ini configuration file.

  8. Download also, release archive of PEAR::Event_Dispatcher package version 1.0.0 (or better), from http://pear.php.net/package/Event_Dispatcher/download and extract it to a directory that is listed in the include_path of your php.ini configuration file.

  9. Depending of what renderer (XML) you will use, you may also need to download release archive of PEAR::XML_Util package version 1.1.4 (or better), from http://pear.php.net/package/XML_Util/download and extract it to a directory that is listed in the include_path of your php.ini configuration file.

  10. Depending of what renderer (HTML) you will use, you may also need to download release archive of PEAR::HTML_Table package version 1.8.2 (or better), from http://pear.php.net/package/HTML_Table/download and extract it to a directory that is listed in the include_path of your php.ini configuration file.

  11. Prepare the pciconf.bat script:

    For windows users only
    1. Replace the @php_bin@ string in it with the path to your PHP command-line interpreter. Replace also the @bin_dir@ string in it with the directory where you will put the pciconf script.

    2. Copy it to a directory that is in your PATH

  12. Prepare the pciconf script:

    1. Rename the configure.php file to pciconf.

    2. Replace the @php_bin@ string in it with the path to your PHP command-line interpreter (usually /usr/bin/php).

    3. Copy it to a directory that is in your PATH and make it executable (chmod +x pci), or for windows users copy it to the directory corresponding to @bin_dir@ string (see previous modification).

    4. Replace the @php_dir@ string in it with the path to your PEAR directory installation.

What is New in version ? (Previous) Getting started (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.