This topic will help you understand the structure of the .zpk package which contains the data, scripts, and an XML descriptor file for your library.
The .zpk package contains the following components:
Your library (all the source code files of your library).
This XML file, which is defined by an XSD file, describes all necessary information in order to deploy your library using Zend Server’s deployment feature, and contains:
type - The type of package: PHP application or library.
summary - The library short description.
description - The library long description.
version (Required) - The library version number.
eula - The EULA file.
scriptsdir - The directory in which your scripts are located. By default, this is the scripts folder of your package.
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 Libraries.
For an example of the descriptor template see The XML Descriptor File.
Zend Server Deployment allows you to insert scripts during the staging process of the library deployment:
See Preparing the Package Using the Deployment Tool to learn how to build your library package.
The following is a list of examples for operations that may be defined in each hook script:
Pre-stage - Validate and applying user customized parameter values, verify the existence of generic prerequisites, etc.
Post-stage - Create a new database schema, modify a file or directory permissions on staged source files, etc.