Skip to content

Latest commit

 

History

History
65 lines (37 loc) · 2.38 KB

File metadata and controls

65 lines (37 loc) · 2.38 KB

Configuration from Events

This options container use event to get configuration

The event options.output

Allow to indicate where to create the Phar file.

Event type: PathResultEvent

The event options.name

Allow to indicate the name of the Phar

Event type: StringResultEvent

The event options.include-dev

Allow to indicate if development dependencies must be added to the Phar or not

Event type: BooleanResultEvent

The event options.stub-path

Allow to set the stub file of the Phar

Event type: PathResultEvent

The event options.compression

Allow to indicate the compression to use on the Phar.

The compression value are PHP Phar constants.

Event type: IntegerResultEvent

The event options.entry-point

Allow to set the script to include (the function require_once is used) to start your application.

Event type: PathResultEvent

The event options.included

Allow to set additional path to add to the phar. By default, only path from the composer.json autoloader are included.

Multiple path can be added by separating the values with a coma (,). Path can be a directory or a file. Path are relative from the composer.json directory.

Event type: PathListResultEvent

The event options.excluded

You can define path to excludes. The path can be partial:

Value Match hello/tests/world Match hellotestsworld Match tests/world Match hello/tests Match testsworld
tests YES YES YES YES YES
/tests NO NO YES NO YES
/tests/ NO NO YES NO NO
*/tests/ YES NO YES YES NO

Event type: PathListResultEvent