一个页面的 opcache 状态页面
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.
opcache_get_status() metrics at a glance, plus preload script and user when opcache.preload is configuredprefers-color-scheme$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.
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.
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.
暂无开放 Issues,或尚未同步最近议题。