Howto Publish a Pear Package on Pearhub

6 min read
phppearhubgitsvngithubtutorial

Here's a quick tutorial I put together to help you get started on Pearhub.

First of all you may be wondering what is Pear? From the Pear Documentation - "PEAR is short for "PHP Extension and Application Repository" and is pronounced just like the fruit". It is an umbrella-term that encompasses a package management system, an official package repository, a coding standard and a command-line tool. For more information please read the Wikipedia page: http://en.wikipedia.org/wiki/PEAR.

gist:robmorgan/273464#pearhubtutorial.php

Next fire up the OS X Terminal and switch to your working directory. We are going to initialize a local Git repository and push it up to GitHub. This can be achieved by issuing the following commands:

Note: At the time of writing you must specify a value in the license field. Enter the value 'None' in the 'title' field and your Github repository URL in the 'href' field. Also make sure you enter an email address in the lead maintainer section as Pear requires this. Leave the release policy as 'Automatic' and hit 'Create project'.

gist:robmorgan/273951#pearhubtest.php