Scriptindex.de

[ Menü ]

Home
News
Scripts
Neuzugänge
Suchen
Bücher
Manuals

[ Inhalt ]

Script eintragen
Tutorial eintragen
Newsletter
Umfragen
Link zu uns
Werbung bei uns
Kontakt
Impressum

[ Statistik ]

Hits gesamt: 3781721
Hits Heute: 243
max. Hits (10.07.07): 6964
User Online: 17
Scripts: 2748

[ Partner ]

CodeBase
I.S.U.M.
LUG Bayreuth
PEAR NEWS
PHP Classes

[ Umfrage ]

Würden Sie ein Forum zum Thema Scripts bei uns wünschen?
Ja, würde ich nutzen
Vielleicht
Nein, es gibt bereits zu Viele

[ Eigene Domain? ]

[ Buchtipp ]

Dynamische Webseiten mit Flash und PHP, m. CD-ROM
Dynamische Webseiten mit Flash und PHP, m. CD-ROM

Manuals > PEAR > The package definition file package.xml

Chapter 10. The package definition file package.xml

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

This chapter will describe the allowed elements of the package definition file and it will discuss how to create such a file for your package.

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

$ pear install PEAR_PackageFileManager

Allowed elements

The toplevel element in package.xml is the element <package version="1.0">. The allowed sub elements are:

Creating a package definition file

This package.xml can serve as a template for you as it already contains all necessary elements. In most cases you only need to change the character data between the tags in order to use the example in your package.

In this example you get to know a very handy feature: When you have a directory in your package that only contains files of the same type, you can add to role attribute even to the <dir> tag instead of adding it to every singe <file> tag.

With the knowledge you aquired during this chapter you should now be able to produce a package definition file for your own package. If you still have questions concerning the topic, don't hesitate to ask on the mailinglist.

Defining Dependencies

The PEAR Package Manager supports checking for different system capabilities. You define those dependencies with the <dep> tag:


Copyright 1998 - 2006 by I.S.U.M.