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
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. 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 the O’Reilly learning platform.

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