Re: Use pear as installation library

From: Date: Wed, 04 May 2011 14:16:09 +0000
Subject: Re: Use pear as installation library
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-31104@lists.php.net to get a copy of this message
Thank you Brett. But how about artifact which contains database change, other php execution behavior? I mean the need is not just copy resource to target, but also execute some script (php script/shell script). It seems that pear is good for distributing library, but it's not a good platform for high-customized installation(like some need for rpm/bitnami, ). -- Regards Chen On May 4, 2011, at 3:58 PM, Brett Bieber wrote: > > > 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 --- Chen Xiongjie email: chen.xcmail@gmail.com | xc@ez.no skype: xiongjie.chen twitter: http://twitter.com/xiongjie

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