Linux "phar" Command Line Options and Examples
The PHAR file format provides a way to put entire PHP applications into a single file called a "phar" (PHP Ar‐ chive) for easy distribution and installation. With the phar command you can create, update or extract PHP archives.
Command Line Options:
... Any number of input files and directories. If -i is in use then ONLY files and matching thegiven regular expression are being packed. If -x is given then files matching that regularexpression are NOT being packed.Optional arguments:
phar -f ...
alias Provide an alias name for the phar file.
phar -a ...
algo Compression algorithm (see COMPRESSION )
phar -c ...
regex Specifies a regular expression for input files.
phar -i ...
level Number of preceding subdirectories to strip from file entries
phar -l ...
compress commandCompress or uncompress all files or a selected entry.Required arguments:
phar -x ...
delete commandDelete entry from a PHAR archiveRequired arguments:
phar -e ...
list commandList contents of a PHAR archive.Required arguments:
phar -k ...
phar -m ...
hash Selects the hash algorithm (see HASH )
phar -h ...
stub Select the stub file.
phar -s ...
sign commandSet signature hash algorithm.Required arguments:
phar -y ...