PHAR(1) User Commands PHAR(1) (NAME) phar, phar.phar - PHAR ( PHP) (SYNOPSIS) phar [options] ... (DESCRIPTION) PHAR PHP <> ( PHP) . phar PHP . : add compress delete extract help help-list info list meta-del meta-get meta-set pack sign stub-get stub-set tree version add (ADD COMMAND) PHAR. : -f file phar (file) . ... . -i . -x . : -a alias (alias) phar . -c algo ( COMPRESSION ) -i regex . -l level . -x regex . compress (COMPRESS COMMAND) . : -c algo ( COMPRESSION ) -f file phar (file) . : -e entry entry ( PHAR )..SH " delete (delete command)" PHAR : -e entry entry ( PHAR ). -f file file phar . extract (extract command) PHAR . : -f file file phar . : -i regex . -x regex . ... ( '.' ). help (help command) . : ... . help-list (help-list command) . info (info command) PHAR. -k . : -f file file phar . : -k index (index) . list (list command) PHAR. : -f file file phar . : -i regex . -x regex ..SH " meta-del (meta-del command)" PHAR PHAR. -k . 0 1 . : -f file file phar . : -e entry entry ( PHAR ). -k index (index) . meta-get (meta-get command) PHAR PHAR (serialized). stdout . -k . serialize echo . 1 . : -f file file phar . : -e entry entry ( PHAR ). -k index (index) . meta-set (meta-set command) PHAR PHAR . stdin . -k . . . (flat value) 1 . -k . : -f file file phar . -m meta ( php ). : -e entry entry ( PHAR ). -k index (index) ..SH " pack (pack command)" PHAR. -s stub / . PEAR PHP_Archive -p PHP/Archive.php . : -f file file phar . ... . -i . -x . : -a alias (alias) phar . -b bang hash-bang ( #!/usr/bin/php). '#!' . -c algo ( COMPRESSION ) -h hash hash ( HASH ) -i regex . -l level -p loader PHP_Archive ( pear list-files PHP_Archive). '0' '1' pear . '0' . stub PHP_Archive stream wrapper phar:// . phar.inc Phar . -s stub stub . -x regex . -y key (key) OpenSSL. sign (sign command) . : -f file file phar . -h hash hash ( HASH ) : -y key (key) OpenSSL..SH " stub-get (stub-get command)" (stub) PHAR. stub stdout . : -f file phar (file) . : -s stub stub. stub-set (stub-set command) (stub) PHAR. stub stdin . : -f file phar (file) . : -b bang Hash-bang ( #!/usr/bin/php). <<#!>> . -p loader PHP_Archive ( pear list-files PHP_Archive). '0' '1' pear . stub PHP_Archive stream wrapper phar:// . phar.inc Phar . -s stub stub. tree (tree command) PHAR. : -f file phar (file) . : -i regex (regex) . -x regex (regex) . version (version command) PHAR . (COMPRESSION) : 0 none auto gz GZip gzip GZip bz2 BZip2 bzip2 BZip2.SH " (HASH)" : md5 MD5 sha1 SHA1 sha256 SHA256 sha512 SHA512 openssl OpenSSL SHA-1 openssl_sha256 OpenSSL SHA-256 openssl_sha512 OpenSSL SHA-512 (SEE ALSO) PHAR : https://www.php.net/phar (BUGS) : https://github.com/php/php-src/issues (AUTHORS) The PHP Group: Thies C. Arntzen, Stig Bakken, Andi Gutmans, Rasmus Lerdorf, Sam Ruby, Sascha Schumann, Zeev Suraski, Jim Winstead, Andrei Zmievski. PHP Gregory Beaver Marcus Boerger . : https://www.php.net/credits.php PHP . (VERSION INFORMATION) phar 8.5.10 . (COPYRIGHT) (C) The PHP Group 3.01 PHP LICENSE : https://www.php.net/license/3_01.txt PHP license@php.net . The PHP Group 2024 PHAR(1)