Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
script for packaging php projects for PEAR
cd path/to/project
# create package.xml
pear package-validate
pear package
cp *.tgz path/to/pear/repo
cd path/to/pear/repo
pirum add . [filename].tgz
git add -A
git commit -m 'Add new package'
git push origin gh-pages
@reubano

This comment has been minimized.

Copy link
Owner Author

commented Oct 3, 2012

How to Make a pear channel

Create a new repository on GitHub called pear

Set up your local environment

cd /path/to/projects
mkdir pear
cd pear
git init
git remote add origin git@github.com:[your git username]/pear.git

Install Pirum

pear channel-discover pear.pirum-project.org
pear install pirum/Pirum-beta

Create a pirum configuration file pirum.xml at the root of your pear repository

<?xml version="1.0" encoding="UTF-8" ?>
<server>
<name>[username].github.com/pear</name>
<summary>[username]'s PEAR Channel Server</summary>
<alias>[username]</alias>
<url>http://[username].github.com/pear</url>
</server>

Build and push

pirum build .
git add -A
git commit -m "Initial server build. Sauce Labs is awesome"
git branch -m master gh-pages
git push origin gh-pages

Your PEAR channel server is now available (after maybe 15 minutes) under [username].github.com/pear. Test it out!

pear channel-discover [username].github.com/pear
pear channel-info [username]
pear list-all -c [username]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.