Re: Use pear as installation library

From: Date: Tue, 03 May 2011 12:37:28 +0000
Subject: Re: Use pear as installation library
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-31100@lists.php.net to get a copy of this message
On Tue, May 3, 2011 at 1:14 PM, 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. > yes, I think, but it depends on what do you mean by "installation library". pear for php is something like apt or yum for a linux distribution: a package manager. the pear.php.net pear channel is used to ship reusable components/libraries, but you can create your own package/channel and use pear to manage your applications (versioning, deployment, etc). > typically questions: > - Does it support extendable tag > what do you mean by that? > - Is the API of pear open? > yes > - 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) > you need 2 component to set up your own channel and start shipping packages. you need a pear channel server, I would highly recommend http://www.pirum-project.org/ and you would have to create and build your own pear packages. for building your own package you have to create and properly set your package.xml: http://pear.php.net/manual/en/guide.developers.package2.php and when it's done, you can build your package with pear package after that, you can add you package with pirum command line client to your pear channel. the hardest part is to write the package.xml. > - for long term, will it be a kind of formal/unformal php installer > library? > again, what do you mean by installer library. currently pear IS the official package manager for php. Tyrael

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