(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 1.0.0)
La classe Phar fournit une interface de haut niveau pour accéder et créer des archives 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$alias
= null
,$index
= null
,$fileNotFoundScript
= null
,$mimeTypes
= [],$rewrite
= null
$mode
= "r", bool $useIncludePath
= false
, ?resource $context
= null
): SplFileObject