12.13. Packaging

In the “Building Packages” section earlier, we saw an example of using pear package to build a release tarball. In this section, we go deeper into that process. The component of the PEAR Installer that creates packages is called the PEAR packager. When we refer to the PEAR packager in this section, know that it is part of the installer.

12.13.1. Source Analysis

One of the things that the PEAR packager does is analyze PHP code to determine what dependencies it has, and what classes and functions it defines. It does this both to ease dependency handling and to catch coding standard-related problems. For example, if a package defines a class with a name that is outside the package's namespace, the packager issues an error.

12.13.2. ...

Get PHP 5 Power Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.