Re: How to work with PEAR channel server ?
| From: | Brett Bieber | Date: | Tue, 10 Jan 2012 14:48:30 +0000 |
| Subject: | Re: How to work with PEAR channel server ? | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-54702@lists.php.net to get a copy of this message | ||
On Tue, Jan 10, 2012 at 3:40 AM, Lin Yo-An <cornelius.howl@gmail.com> wrote:
>
> Hi folks,
>
> I am currently working on a PEAR tool that needs to communicate / download
> meta xml files from PEAR channel,
> But I didn't see clearly examples about it, or any component that works for
> it ?
Both the PEAR installer and Pyrus communicate with remote PEAR
channels using the standard pear channel protocol. It's fairly simple
to get details using http requests, all documented here -
http://pear.php.net/manual/en/core.rest.php
Here's a simple example which communicates with a remote PEAR channel
using Pyrus:
https://gist.github.com/1589425
> BTW, is it possible to mirror a whole PEAR channel ? any solution ?
Yes, I believe there are others that are doing this:
https://github.com/lagged/MirrorPackage
--
Brett Bieber