百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
O

opcache-status

> 编程语言
开源

一个页面的 opcache 状态页面

1.6K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

一个页面的 opcache 状态页面

OPcache Status

A single-file OPcache status page for PHP 8.2+. Drop opcache.php into any directory and get a full overview of your OPcache configuration, cached scripts, and health — zero external dependencies.

Features

  • Status tab — all opcache_get_status() metrics at a glance, plus preload script and user when opcache.preload is configured
  • Configuration tab — current directives with changed values highlighted, inline documentation from php.net, human-readable formatting (memory sizes, time values, percentages), and a blacklisted paths section
  • Health tab — seven checks (memory, keys, interned strings, JIT buffer, wasted memory, hit rate, file cache) with green/yellow/red/info indicators, progress bars, and tuning suggestions
  • Scripts tab — sortable table of all cached scripts by hits, memory, or path with per-script cache invalidation on hover
  • Cache management — reset the entire cache or invalidate individual scripts, with confirmation modals that warn about the impact of a full reset
  • Auto-refresh — toggle a 5-second reload cycle with a live activity chart showing cache hits/s, misses/s, and memory usage over time
  • Donut charts — memory, keys, hits, restarts, and conditionally JIT and interned strings
  • Squarified treemap — interactive visualization of cached scripts by memory usage with drill-down navigation, inline and fullscreen modes
  • Dark mode — automatic via prefers-color-scheme
  • Responsive — CSS Grid layout adapts to narrow screens
  • Read-only mode — set $readonly = true at the top of opcache.php to disable all cache modification actions (reset and invalidate)

Everything is self-contained in a single PHP file with inline CSS and vanilla JavaScript. No jQuery, no D3.js, no CDN scripts.

Usage

Install the package:

composer require --dev rlerdorf/opcache-status dev-master

Drop it where you want it in your public folder:

ln -s vendor/rlerdorf/opcache-status/opcache.php ./public/

Open the file in your browser:

http://127.0.0.1:8000/opcache.php

If the Zend OPcache extension is not loaded, sample data from data-sample.php is shown automatically.

Development

php -S localhost:8000

Then open http://localhost:8000/opcache.php. The fallback to sample data is based on extension_loaded('Zend OPcache'), not opcache.enable.

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHP

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言