Yannick Warnier 76a0eae5ea Add static resources and remove tests dir for beta release | %!s(int64=5) %!d(string=hai) anos | |
---|---|---|
.. | ||
src | %!s(int64=5) %!d(string=hai) anos | |
.gitignore | %!s(int64=5) %!d(string=hai) anos | |
LICENSE | %!s(int64=5) %!d(string=hai) anos | |
README.md | %!s(int64=5) %!d(string=hai) anos | |
composer.json | %!s(int64=5) %!d(string=hai) anos | |
composer.lock | %!s(int64=5) %!d(string=hai) anos |
PHAR file format utilities, for when PHP phars you up.
composer require seld/phar-utils
Seld\PharUtils\Timestamps
__construct($pharFile)
Load a phar file in memory.
updateTimestamps($timestamp = null)
Updates each file's unix timestamps in the PHAR so the PHAR signature can be produced in a reproducible manner.
save($path, $signatureAlgo = '')
Saves the updated phar file with an updated signature. Algo must be one of
Phar::MD5
,Phar::SHA1
,Phar::SHA256
orPhar::SHA512
PHP 5.3 and above
PHAR Utils is licensed under the MIT License - see the LICENSE file for details