MiniPear creates local pear channel mirrors for offline usage.
PHP Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
scripts
src/MiniPear
static
tests
vendor/pear
README.md
minipear
package.ini
package.xml
phpunit.xml
test-install.sh

README.md

MiniPear - PEAR Channel Local Mirror Tool

MiniPear can create local pear channel mirrors for offline usage.


Requirement

  • PHP 5.3+
  • php curl extension

Install

wget --no-check-certificate https://github.com/c9s/MiniPear/raw/master/minipear
chmod +x minipear

Usage

To create a mirror:

$ minipear mirror {channel host}

Print verbose / debug messages:

$ minipear -d mirror {channel host}

Mirror without maintainer info section if you need:

$ minipear mirror --no-info {channel host}

Channel sites will be mirrored into ~/.minipear/pear/channels.

The channel host will be replaced by {alias}-local, you can install packages from these local pear hosts when you are offline, for example,

$ minipear -d mirror pear.php.net

Install the hostname:

vim /etc/hosts

Add 127.0.0.1 pear-local

127.0.0.1 pear-local

Install your virtual host to the hostname pear-local.

Then use pear to channel-discover:

$ sudo pear channel-discover pear-local

Install through the pear-local:

$ sudo pear install pear-local/Archive_Tar

Contribution

Fork this project and send me the pull request.

Required development dependencies:

pear channel-discover pear.corneltek.com
pear install corneltek/PHPUnit_TestMore
pear install corneltek/Universal

Author

Yo-An Lin yoanlin93@gmail.com

LICENSE

MIT License