PHPackages                             rlerdorf/opcache-status - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. rlerdorf/opcache-status

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rlerdorf/opcache-status
=======================

A one-page opcache status page

1.2.1(4mo ago)1.6k470.4k↓54.4%369PHP-3.0PHPPHP &gt;=8.2.0

Since Jan 21Pushed 3mo ago79 watchersCompare

[ Source](https://github.com/rlerdorf/opcache-status)[ Packagist](https://packagist.org/packages/rlerdorf/opcache-status)[ RSS](/packages/rlerdorf-opcache-status/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)DependenciesVersions (11)Used By (0)

OPcache Status [![Packagist](https://camo.githubusercontent.com/08915654cc20b5dcba4b002d38278c5fc7d41b3e868b1c8df72c2caf13fd5524/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726c6572646f72662f6f7063616368652d7374617475732e737667)](https://packagist.org/packages/rlerdorf/opcache-status)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#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.

[![Screenshot](screenshot.png)](screenshot.png)

### Features

[](#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

[](#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

[](#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`.

###  Health Score

68

—

FairBetter than 99% of packages

Maintenance77

Regular maintenance activity

Popularity62

Solid adoption and visibility

Community35

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 53.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

4

Last Release

129d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/04c4b64e4b0528a79749a79b300ef81c093cbdaeb733b2b2c2a39b4352fa19a3?d=identicon)[rlerdorf](/maintainers/rlerdorf)

![](https://avatars.githubusercontent.com/u/640960?v=4)[James White](/maintainers/jamesrwhite)[@jamesrwhite](https://github.com/jamesrwhite)

---

Top Contributors

[![rlerdorf](https://avatars.githubusercontent.com/u/54641?v=4)](https://github.com/rlerdorf "rlerdorf (54 commits)")[![krakjoe](https://avatars.githubusercontent.com/u/2236138?v=4)](https://github.com/krakjoe "krakjoe (12 commits)")[![jamesrwhite](https://avatars.githubusercontent.com/u/640960?v=4)](https://github.com/jamesrwhite "jamesrwhite (11 commits)")[![cviebrock](https://avatars.githubusercontent.com/u/166810?v=4)](https://github.com/cviebrock "cviebrock (5 commits)")[![remicollet](https://avatars.githubusercontent.com/u/270445?v=4)](https://github.com/remicollet "remicollet (4 commits)")[![jeffery](https://avatars.githubusercontent.com/u/175114?v=4)](https://github.com/jeffery "jeffery (2 commits)")[![pborreli](https://avatars.githubusercontent.com/u/77759?v=4)](https://github.com/pborreli "pborreli (1 commits)")[![swarajgiri](https://avatars.githubusercontent.com/u/6647345?v=4)](https://github.com/swarajgiri "swarajgiri (1 commits)")[![tersmitten](https://avatars.githubusercontent.com/u/3392962?v=4)](https://github.com/tersmitten "tersmitten (1 commits)")[![tessus](https://avatars.githubusercontent.com/u/223439?v=4)](https://github.com/tessus "tessus (1 commits)")[![till](https://avatars.githubusercontent.com/u/27003?v=4)](https://github.com/till "till (1 commits)")[![vrkansagara](https://avatars.githubusercontent.com/u/12006483?v=4)](https://github.com/vrkansagara "vrkansagara (1 commits)")[![afilina](https://avatars.githubusercontent.com/u/199835?v=4)](https://github.com/afilina "afilina (1 commits)")[![Xakki](https://avatars.githubusercontent.com/u/426468?v=4)](https://github.com/Xakki "Xakki (1 commits)")[![arnolem](https://avatars.githubusercontent.com/u/2263103?v=4)](https://github.com/arnolem "arnolem (1 commits)")[![ck99](https://avatars.githubusercontent.com/u/136840?v=4)](https://github.com/ck99 "ck99 (1 commits)")[![drussilla](https://avatars.githubusercontent.com/u/668735?v=4)](https://github.com/drussilla "drussilla (1 commits)")[![krisxoofoo](https://avatars.githubusercontent.com/u/555219?v=4)](https://github.com/krisxoofoo "krisxoofoo (1 commits)")[![olragon](https://avatars.githubusercontent.com/u/47636?v=4)](https://github.com/olragon "olragon (1 commits)")

### Embed Badge

![Health badge](/badges/rlerdorf-opcache-status/health.svg)

```
[![Health](https://phpackages.com/badges/rlerdorf-opcache-status/health.svg)](https://phpackages.com/packages/rlerdorf-opcache-status)
```

###  Alternatives

[sandersander/composer-link

Adds ability to link local packages for development with composer

98457.9k](/packages/sandersander-composer-link)[carpcai/address-parser

A PHP library covers PHP 5.4 to 7.3, split an address street to street, states, city, zipcode.

1425.5k](/packages/carpcai-address-parser)[friendsoftypo3/compatibility6

TYPO3 Core Compatibility Layer for TYPO3 v7 with added functionality previously present in TYPO3 v6.2

168.1k](/packages/friendsoftypo3-compatibility6)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
