The XML Descriptor File

The library XML descriptor file is made up of the following elements:

  • type - The type of package: PHP application or library.

  • name (Required) - The library name.
  • summary - The library short description.

  • description - The library long description.

  • version (Required) - The library version number.

  • releasedate - The library release date.
  • eula - The EULA file.

  • libdir - The library's directory. By default, this is the data folder of your package.
  • scriptsdir - The directory in which your scripts are located. By default, this is the scripts folder of your package.

  • updateurl - The URL for updating applications/libraries.
  • dependencies - The dependencies that must be met (and will be validated) during the deployment process.

  • user parameters - The parameters for the deployment process. These, along with the values you define, will appear in the User Parameters dialog during deployment. For more information see Deploying an Application.

Note:

The descriptor file is validated by an XSD file in the server. For an example of the file see The XSD File.

Example:

Usage Example

<?xml version="1.0" encoding="utf-8" standalone="no" ?>

<package xmlns="http://www.zend.com/server/deployment-descriptor/1.0" version="2.0">

<type>library</type>

<name>Zend Framework 2</name>

<summary>Zend Framework 2.2.0</summary>

<description>Zend Framework 2.2.0</description>

<version>

<release>2.2.0</release>

</version>

<icon>logo.png</icon>

<eula>LICENSE.txt</eula>

<libdir>library</libdir>

<updateurl>http://www.zend.com/zend-server-library-update/zf2-update.php</updateurl>

<dependencies>

<dependencies/>

</package>