Zend Server User Guide > Tasks > Working with Libraries > Library Package > Understanding the Pacakge Structure

Understanding the Package Structure

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.

Package Structure

The .zpk package contains the following components:

Data

The library's main data directory for inclusion in the package. It contains the library files, deployment scripts, and extra resources such as icons, EULA and README (.txt/.md) files.

By default, this folder is called 'Data' but you can name it differently and reference it accordingly when building your package.

Descriptor File (deployment.xml)

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:

For an example of the descriptor template see The XML Descriptor File.

Scripts

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.

Hook Script Examples

The following is a list of examples for operations that may be defined in each hook script:

 

Read Also

  Libraries    
  Working with Libraries    
  Zend Deployment    
  Preparing the Package Using the Deployment Tool