Linux "phar7.2" Command Line Options and Examples
PHAR

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.


Usage:

phar [options] ...




Command Line Options:

-f
... 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:
phar7.2 -f ...
-a
alias Provide an alias name for the phar file.
phar7.2 -a ...
-c
algo Compression algorithm (see COMPRESSION )
phar7.2 -c ...
-i
regex Specifies a regular expression for input files.
phar7.2 -i ...
-l
level Number of preceding subdirectories to strip from file entries
phar7.2 -l ...
-x
compress commandCompress or uncompress all files or a selected entry.Required arguments:
phar7.2 -x ...
-e
delete commandDelete entry from a PHAR archiveRequired arguments:
phar7.2 -e ...
-k
list commandList contents of a PHAR archive.Required arguments:
phar7.2 -k ...
-m
Optional arguments:
phar7.2 -m ...
-h
hash Selects the hash algorithm (see HASH )
phar7.2 -h ...
-s
stub Select the stub file.
phar7.2 -s ...
-y
sign commandSet signature hash algorithm.Required arguments:
phar7.2 -y ...