Constants | |
PEAR Manual | |
What does it cost ?
You can download and use it for free. But don't delete the copyright notice. You can read terms of the PHP license.
Do you offer support ?
YES if there is no answer in this Guide and if you are ready to share some informations such as : your configuration (platform Win *nix mac, PHP version, PEAR packages installed) and perharps your script.
I found a bug, what shall I do ?
You can report it with the bug tracker at PEAR.
What is PEAR ?
PEAR (an acronym for PHP Extension and Application Repository) is a framework and distribution system for reusable PHP components.
Don't forget to read also the PEAR Manual and PEAR FAQ.
I want to display my system configuration, but this one is not detected ?
If your system file (see command pear config-show) does not exists, or is locate in another directory, then you should give this information on PEAR_Info class constructor.
|
I want to change the look an feel (colors) of PEAR_Info output ?
First copy the default stylesheet named pearinfo.css (locate in {data_dir}/PEAR_Info : see command pear config-show) as a pattern. Then second, change colors and whatever you want until you keep all CSS selectors.
See for example the blue layout pattern skin locate in package installation under name {doc_dir}/PEAR_Info/examples/blueskin.css.
Last, as {doc_dir}/PEAR_Info/examples/pear_info2.php script, set the new stylesheet with PEAR_Info::setStyleSheet.
|
I want to display packages from all my channels ?
By default PEAR_Info display only informations from pear.php.net channel.
To remove this limit, give as option to the class constructor an empty channels list, as below :
|
Note: If you want to filter package listing from a channel list, then give the full qualified list; something like :
<?php
$options = array('channels' => array('pear.php.net', 'pear.phpunit.de', '__uri') );
?>
I want to check if a package is installed or not ?
With static method PEAR_Info::packageInstalled, you can check installation of a package from all channels declared, and also filter by version.
|
Constants | |
PEAR Manual | |