Friday, December 17, 2004

How to Install Pear Package

To install a PHP PEAR package, begin by ensuring the PEAR installer is available on your system. Open a command prompt or terminal and enter the command "pear install [package-name]." Replace "[package-name]" with the specific name of the PEAR package you want to install. The installer will automatically fetch and install the package along with its dependencies. Once the process is complete, you can incorporate the newly installed PHP PEAR package into your projects, enhancing functionality and streamlining development.
You could find this "tutorial" on the help file. this the command :
pear install [package_name]

for non-stable version, try to find the newest version with this command :
pear info [package_name]

then :
pear install [package_name]-[no_release]


Example :
Showing Version :

PACKAGE DETAILS:
================
Latest 1.3.0r2
Installed 1.2.3
Package Auth
License PHP License
Category Authentication
Summary Creating an authentication system
Description The PEAR::Auth package provides methods
for creating an authentication system
using PHP. * Plaintext files * LDAP servers
* POP3 servers * IMAP servers * vpopmail
accounts * RADIUS * SAMBA password files
* SOAP


then install with the newest release(see at the line "lattest")


pear install Auth-1.3.0r2


Done!!

No comments: