Approaches to Web Development for Bioinformatics

Previous  Contents  Next
References

PEAR

PHP Extension and Application Repository (PEAR)62 is a repository and package manager for PHP. The PEAR repository includes a number of open source packages that perform a variety of useful functions. Since PHP 4.3.0 PEAR is included with the standard PHP distribution but may not be installed by default. To install PEAR on your system go to the PHP home directory and type the command


> php go-pear.php

The PEAR web site62 has a list of the available PEAR packages. The pear program makes it easy to download and install new PEAR packages. The PEAR framework can also be a useful way for you to distribute your code to other users in a more structured and consumable way than simply giving them PHP scripts. PEAR packages are included as regular PHP files and these are found using include_path. PEAR requires PHP 4.2.0 or later.

To get a list of installed PEAR packages use the command


> pear list

To get a list of PEAR commands use


> pear help

To get show the current PEAR configuration settings type


> pear config-show

To install a PEAR package type


> pear install [PACKAGE_NAME | URL]

where PACKAGE_NAME is the name of the PEAR package on one of the configured PEAR channels or URL is the URL to a gzipped tar archive file for the package. This can also be a local archive file that you have downloaded. PEAR also has commands for updating , uninstalling packages, and discovering dependencies.


Previous  Contents  Next
References

Contributed Comments and NotesAdd a comment.

There are no user comments.

Google

Please send ideas and opinions by email at alexamies@gmail.com.

© 2006-2007 Alex Amies