12.8. Dependencies

An important benefit of using PEAR is code reuse. However, when you re-use code from a package system, there will be dependencies between packages. These dependencies need to be expressed in the package description to inform users about them.

12.8.1. Element: <deps>

Element name:deps
Attributes:none
May occur in:release (optional)

This element is a container for the <dep> element.

12.8.2. Element: <dep>

Element name:dep
Attributes:name (required)

type (required)

rel (optional)
May occur in:deps (required)

The dep element describes a single dependency.

12.8.2.1. name Attribute

This is the target of the dependency. For pkg dependencies, the name attribute contains the package name; for ext dependencies, it contains the extension ...

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.