Re: Use pear as installation library

From: Date: Wed, 04 May 2011 13:58:45 +0000
Subject: Re: Use pear as installation library
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-31103@lists.php.net to get a copy of this message
On Tue, May 3, 2011 at 6:14 AM, Chen Xiongjie <chen.xcmail@gmail.com> wrote: > Hi, pear > > I'm looking for a php installation library so I can use it for install our > product's extension/plugin. Do you think is it good to use pear as the > installation library. > typically questions: > - Does it support extendable tag > - Is the API of pear open? > - Any documentation for using pear API? (I just found this one but it's > just a api documentation: > http://pear.php.net/manual/en/core.ppm.php) > - for long term, will it be a kind of formal/unformal php installer > library? > I would use Pyrus if your application and extensions are PHP 5.3+. https://github.com/pear2/PEAR2_Pyrus The API is very easy to use. Here's a simple autoloader example which installs a package from a PEAR channel: https://github.com/saltybeagle/AutoloadPackage/blob/master/AutoloadPackage.php The API is documented pretty well: http://pear.php.net/manual/en/pyrus.extending.installation.php PEAR packages are the easiest way to distribute upgradeable libraries of code for your application. -- Brett Bieber

« previous php.pear.general (#31103) next »