O'Reilly logo

PHP 5 Power Programming by Derick Rethans, Stig Sæther Bakken, Andi Gutmans

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required