PHP phar 组件
The Phar class
(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.
类摘要
public __construct(
string $filename,
int $flags = FilesystemIterator::SKIP_DOTS | FilesystemIterator::UNIX_PATHS,
?string $alias = null)
public addFile(
string $filename,
?string $localName = null):
void
final public static canCompress(
int $compression = 0):
bool
public compress(
int $compression,
?string $extension = null):
?Phar
public convertToData(
?int $format = null,
?int $compression = null,
?string $extension = null):
?PharData
public copy(
string $from,
string $to):
bool
public count(
int $mode = COUNT_NORMAL):
int
final public static createDefaultStub(
?string $index = null,
?string $webIndex = null):
string
public delete(
string $entry):
bool
public extractTo(
string $directory,
array|string|null $files = null,
bool $overwrite = false):
bool
final public static loadPhar(
string $filename,
?string $alias = null):
bool
final public static mapPhar(
?string $alias = null,
int $offset = 0):
bool
final public static mount(
string $pharPath,
string $externalPath):
void
final public static mungServer(
array $variables):
void
public offsetSet(
string $localName,
resource|string $value):
void
final public static running(
bool $returnPhar = true):
string
public setDefaultStub(
?string $index = null,
?string $webIndex = null):
bool
public setStub(
string $stub,
int $len = -1):
bool
final public static webPhar(
?string $alias = null,
?string $index = null,
?string $fileNotFoundScript = null,
array $mimeTypes = [],
?callable $rewrite = null):
void
}
目录
Hello!需要输入验证码
微信公众号
哈希空间 数码玩家俱乐部
微信扫码进入公众号回复 1 即可 获得验证码
验证后就可以免弹窗 畅通无阻的访问,一年内有效
关注就是支持,更好的服务提供给粉丝
扫码登录怎么实现?
微信公众号菜单中小程序中也可查看网站内各种资料
方法二:请2个朋友访问你的邀请链接,即可消除弹窗。进度:0/2