Defining the PHAR File's Manifest

You can either define the important parts of the PHAR file manifest directly in the wizard or choose to use a manifest file that already exists in your workbench.

Creating a new manifest

  1. Follow the procedure for creating a PHAR file, but click Next in the last step to go to the PHAR Packaging Options page.
  2. Set any advanced options that you want to set, and then click Next again to go to the PHAR Manifest Specification page.
  3. If it is not already selected, click the Generate the manifest file button.
  4. You can now choose to save the manifest in the workbench. This will save the manifest for later use. Click Save the manifest in the workspace, then click Browse next to the Manifest file field to specify a path and file name for the manifest.
  5. If you decided to save the manifest file in the previous step and you chose to save the PHAR description on the previous wizard page, then you can choose to reuse it in the PHAR description (by selecting the Reuse and save the manifest in the workspace checkbox). This means that the saved file will be used when the PHAR file is recreated from the PHAR description.This option is useful if you want to modify or replace the manifest file before recreating the PHAR file from the description.
  6. You can choose to seal the PHAR and optionally exclude some packages from being sealed or specify a list with sealed packages. By default, nothing is sealed.
  7. Click the Browse button next to the Main class field to specify the entry point for your applications.
    Note: If your class is not in the list, then you forgot to select it at the beginning.
  8. Click Finish. This will create the PHAR, and optionally a PHAR description and a manifest file.

Using an existing manifest

You can use an existing manifest file that already exists in your workbench.
  1. Follow the procedure for creating a PHAR file, but click Next in the last step to go to the PHAR Packaging Options page.
  2. Set any advanced options that you want to set, and the click Next again to go to the PHAR Manifest Specification page.
  3. Click the Use existing manifest from workspace radio button.
  4. Click the Browse button to choose a manifest file from the workbench.
  5. Click Finish. This will create the PHAR and optionally a PHAR description.

Related tasks

Creating a new PHAR file
Setting advanced options
Regenerating a PHAR file

Related reference

PHAR file exporter