xenph/Metrics — pull request #1 by maetl (2012-04-06 05:52:22+00:00)
Title: package manifest for distributing via pear

Due to some peculiarities with the package builder, I had to treat the full path to the files as namespaced directories, so `./metrics` rather than `./library` — this allows the files to be installed directly into a system wide include path (on my OSX PHP 5.3.8 it ends up at `/usr/lib/php/pear/metrics`).

I also removed the submodule dependency. It would require some additional work to bring in StatsD as a dependency available system wide. The best way would probably be to submit an identical pull request to this, to the owner of the php-statsd repo. Then we can just add the library as a dependency in the `package.xml` and it will be pulled in automatically.

The channel link is setup as a `` rather than a `` for the time being. If we setup a live channel server using GitHub pages, this would need to change.

Perhaps we rename the package from `Metrics` to `metrics` to match the lowercase namespacing and folders?

Also, I couldn’t seem to request a new branch on the pull request. If you want to pull to `pear-package` rather than `master`, you’d probably need to branch at your end, then ammend this pull request to go into there, rather than merge over the top of the existing submodule setup.

Usage
---------

Building a package tarball:

```
$ pear package
```

Installing a local tarball into the system include path (may need sudo):

```
$ pear install Metrics-0.0.1.tgz
```

Removing the installed package:

```
$ pear uninstall __uri/Metrics
```