PEAR logo

PEAR_PackageFileManager : The Definitive Guide



Chapter 3. The package definition file package.xml, version 2.0

Table of Contents

Introduction
Allowed elements

A quick guide to version 2.0 of the package definition file package.xml

The package definition file package.xml is, as the name already implies, a well-formed XML file that contains all information about a PEAR package. Version 2.0 contains several important enhancements over version 1.0, including

  • Channel support

  • Binary PECL packages support (not fully implemented in PEAR 1.4.0)

  • More specific dependency resolution

This chapter will describe the allowed elements of the package definition file.

The PEAR_PackageFileManager package simplifies the creation of package.xml. You can install PEAR_PackageFileManager via the usual command.

     
$ pear install PEAR_PackageFileManager
     
    
[Note] Note
Since version 1.6.0a1, PEAR_PackageFileManager supports package.xml 2.0 with the PEAR_PackageFileManager2 class.
PEAR_PackageFileManager : The Definitive Guide v 1.6.0 : November 17, 2006