Skip to content

Instantly share code, notes, and snippets.

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

This comment has been minimized.

Copy link
Owner Author

reubano 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[your git username]/pear.git

Install Pirum

pear channel-discover
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" ?>
<summary>[username]'s PEAR Channel Server</summary>

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] Test it out!

pear channel-discover [username]
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.