(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 1.0.0)
The Phar class provides a high-level interface to accessing and creating phar archives.
$filename
, int $flags
= FilesystemIterator::SKIP_DOTS | FilesystemIterator::UNIX_PATHS, ?string $alias
= null
)$format
= null
, ?int $compression
= null
, ?string $extension
= null
): ?PharData$format
= null
, ?int $compression
= null
, ?string $extension
= null
): ?Phar$alias
= null
,$index
= null
,$fileNotFoundScript
= null
,$mimeTypes
= [],$rewrite
= null
$mode
= "r", bool $useIncludePath
= false
, ?resource $context
= null
): SplFileObjectVersion | Description |
---|---|
8.4.0 | Added support for the Unix timestamp extension for Zip-based archives. |
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant