phar Command Examples

Create, update or extract PHP archives (PHAR). More information: https://manned.org/phar.

phar add -f {{path/to/phar_file}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}

phar list -f {{path/to/phar_file}}

phar delete -f {{path/to/phar_file}} -e {{file_or_directory}}

phar compress -f {{path/to/phar_file}} -c {{algorithm}}

phar info -f {{path/to/phar_file}}

phar sign -f {{path/to/phar_file}} -h {{algorithm}}

phar sign -f {{path/to/phar_file}} -h openssl -y {{path/to/private_key}}

phar help