From f8217329885bbd6aaa46af42b72026d3561888e8 Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Tue, 6 Mar 2018 09:52:41 +0000 Subject: [PATCH] phar: add page (#2000) --- pages/linux/phar.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pages/linux/phar.md diff --git a/pages/linux/phar.md b/pages/linux/phar.md new file mode 100644 index 000000000..d873a006f --- /dev/null +++ b/pages/linux/phar.md @@ -0,0 +1,35 @@ +# phar + +> Create, update or extract PHP archives (PHAR). + +- Add space-separated files or directories to a Phar file: + +`phar add -f {{path/to/phar_file}} {{files_or_directories}}` + +- Display the contents of a Phar file: + +`phar list -f {{path/to/phar_file}}` + +- Delete the specified file or directory from a Phar file: + +`phar delete -f {{path/to/phar_file}} -e {{file_or_directory}}` + +- Display full usage information and available hashing/compression algorithms: + +`phar help` + +- Compress or uncompress files and directories in a Phar file: + +`phar compress -f {{path/to/phar_file}} -c {{algorithm}}` + +- Get information about a Phar file: + +`phar info -f {{path/to/phar_file}}` + +- Sign a Phar file with a specific hash algorithm: + +`phar sign -f {{path/to/phar_file}} -h {{algorithm}}` + +- Sign a Phar file with an OpenSSL private key: + +`phar sign -f {{path/to/phar_file}} -h openssl -y {{path/to/private_key}}`