mingalevme/opcache-status-info
最新稳定版本:1.0.1
Composer 安装命令:
composer require mingalevme/opcache-status-info
包简介
PHP OPcache status information object
README 文档
README
The PHP opcache_get_status-function result wrapper.
Installation
composer require mingalevme/opcache-status-info
Usage
# some bootstrap file use Mingalevme\OpcacheStatusInfo\Fetcher as OpcacheStatusInfoFetcher; use Mingalevme\OpcacheStatusInfo\Fetcher\OpcacheGetStatusFetcher; $fetcher = new OpcacheGetStatusFetcher(); $someDIContainer->bind(OpcacheStatusInfoFetcher::class, function() use ($fetcher): OpcacheStatusInfoFetcher { return $fetcher; });
# some app file use Mingalevme\OpcacheStatusInfo\Fetcher; use Mingalevme\OpcacheStatusInfo\OpcacheStatusScriptInfo; /** @var Fetcher $fetcher */ $fetcher = $someDIContainer->get(Fetcher::class); $opcacheStatusInfo = $fetcher->fetch(); echo $opcacheStatusInfo->isEnabled(); /** @var OpcacheStatusScriptInfo $opcacheStatusScriptInfo */ foreach ($opcacheStatusInfo->getScripts() as $opcacheStatusScriptInfo) { echo $opcacheStatusScriptInfo->getFullPath(); }
统计信息
- 总下载量: 875
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-07-12