1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 13:05:59 +02:00

phar: add page (#2000)

This commit is contained in:
Owen Voke 2018-03-06 09:52:41 +00:00 committed by Agniva De Sarker
parent e7fc4be71a
commit f821732988

35
pages/linux/phar.md Normal file
View file

@ -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}}`