Tar-based phars

Archives based on the tar file format follow the more modern USTAR file format. The design of the tar file header makes them more efficient to access than the zip file format, and almost as efficient as the phar file format. File names are limited to 255 bytes, including full path within the phar archive. There is no limit on the number of files within a tar-based phar archive. These archives can fully compressed in gzip or bzip2 format and still be executed by the Phar extension.

To compress an entire archive, use Phar::compress(). To decompress an entire archive, use Phar::decompress().

相关文章
php phar convert a phar archive to a non executable tar or zip filephp what makes a phar a phar and not a tar or a zip? head to head comparison of phar tar and zipphp what makes a phar a phar and not a tar or a zip? global phar bitmapped flagsphp what makes a phar a phar and not a tar or a zip? ingredients of all phar archives independent of file formatphp what makes a phar a phar and not a tar or a zip? phar manifest file entry definitionphp what makes a phar a phar and not a tar or a zip? phar file formatphp phar what makes a phar a phar and not a tar or a zip?php what makes a phar a phar and not a tar or a zip? phar signature formatphp what makes a phar a phar and not a tar or a zip? phar file stubphp what makes a phar a phar and not a tar or a zip? tar based pharsphp what makes a phar a phar and not a tar or a zip? zip based pharsphp phar returns phar gz or phar bz2 if the entire phar archive is compressed .tar.gz/tar.bz and so on php phar returns true if the phar archive is based on the tar/phar/zip file format depending on the parameterphp phar mapphar for web based phars. front controller for web applicationsphp phardata add an empty directory to the tar/zip archivephp phardata add a file from the filesystem to the tar/zip archivephp phardata convert a phar archive to a non executable tar or zip filephp phardata convert a non executable tar/zip archive to an executable phar archivephp phardata returns true if the tar/zip archive can be modifiedphp phardata set the contents of a file within the tar/zip to those of an external file or string
关注编程学问公众号