1PHAR Utils
2==========
3
4PHAR file format utilities, for when PHP phars you up.
5
6Installation
7------------
8
9`composer require seld/phar-utils`
10
11API
12---
13
14### `Seld\PharUtils\Timestamps`
15
16- `__construct($pharFile)`
17
18 > Load a phar file in memory.
19
20- `updateTimestamps($timestamp = null)`
21
22 > Updates each file's unix timestamps in the PHAR so the PHAR signature
23 > can be produced in a reproducible manner.
24
25- `save($path, $signatureAlgo = '')`
26
27 > Saves the updated phar file with an updated signature.
28 > Algo must be one of `Phar::MD5`, `Phar::SHA1`, `Phar::SHA256`
29 > or `Phar::SHA512`
30
31### `Seld\PharUtils\Linter`
32
33- `Linter::lint($pharFile)`
34
35 > Lints all php files inside a given phar with the current PHP version.
36
37Requirements
38------------
39
40PHP 5.3 and above
41
42License
43-------
44
45PHAR Utils is licensed under the MIT License - see the LICENSE file for details
46