(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 1.0.0)
Phar 类提供了一个高级接口来访问和创建 phar 档案。
$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$directory
, array|string|null $files
= null
, bool $overwrite
= false
): bool
$alias
= null
,$index
= null
,$fileNotFoundScript
= null
,$mimeTypes
= [],$rewrite
= null
$mode
= "r", bool $useIncludePath
= false
, ?resource $context
= null
): SplFileObject