Examples (8)
Add one or more files or directories to a Phar file
phar add -f path/to/phar_file path/to/file_or_directory1 path/to/file_or_directory2 ...Display the contents of a Phar file
phar list -f path/to/phar_fileDelete the specified file or directory from a Phar file
phar delete -f path/to/phar_file -e file_or_directoryCompress or uncompress files and directories in a Phar file
Sign a Phar file with a specific hash algorithm
phar sign -f path/to/phar_file -h algorithmSign a Phar file with an OpenSSL private key
made by @shridhargupta | data from tldr-pages