PHPackages                             cyberline/detect-opcode-cache - 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. cyberline/detect-opcode-cache

ActiveLibrary

cyberline/detect-opcode-cache
=============================

Detect whether PHP is running an opcode cache

v1.0(11y ago)218proprietaryPHPPHP &gt;=5.0.0

Since Nov 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/CyberLine/DetectOpCodeCache)[ Packagist](https://packagist.org/packages/cyberline/detect-opcode-cache)[ Docs](https://github.com/CyberLine/DetectOpCodeCache)[ RSS](/packages/cyberline-detect-opcode-cache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

DetectOpCodeCache
=================

[](#detectopcodecache)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1eca250a3153392bf944172918820415877319d81123f8fd1438aec57f441aa4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f43796265724c696e652f4465746563744f70436f646543616368652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/CyberLine/DetectOpCodeCache/?branch=master)[![Build Status](https://camo.githubusercontent.com/48dc1443a8968239c8f364aaa56c6b0dda466ed5b7ab9d731ae27ae2bff49374/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f43796265724c696e652f4465746563744f70436f646543616368652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/CyberLine/DetectOpCodeCache/build-status/master)[![SensioLabsInsight](https://camo.githubusercontent.com/f181855b07c82e2dff3a7f8161bd2a49ef6aed13096d6fb45cefca528c0cecc7/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f66336162613161332d373735362d343037372d616438372d3564393263643462303162632f6d696e692e706e67)](https://insight.sensiolabs.com/projects/f3aba1a3-7756-4077-ad87-5d92cd4b01bc)[![Latest Stable Version](https://camo.githubusercontent.com/c24d253ff456d9e1bf9a73b1b7b3f58f08972fd00d9cf107f26b81ad1c8e14fd/68747470733a2f2f706f7365722e707567782e6f72672f63796265726c696e652f6465746563742d6f70636f64652d63616368652f762f737461626c652e737667)](https://packagist.org/packages/cyberline/detect-opcode-cache)[![Total Downloads](https://camo.githubusercontent.com/e0e0e5487911ed912ca24e8f0a264dcc9cc9216cc9086a64fafae2279101d3c6/68747470733a2f2f706f7365722e707567782e6f72672f63796265726c696e652f6465746563742d6f70636f64652d63616368652f646f776e6c6f6164732e737667)](https://packagist.org/packages/cyberline/detect-opcode-cache)[![Latest Unstable Version](https://camo.githubusercontent.com/801c2c946de425d908ac8c42351373dd18431a60ca99dfd75641e52afc9bc174/68747470733a2f2f706f7365722e707567782e6f72672f63796265726c696e652f6465746563742d6f70636f64652d63616368652f762f756e737461626c652e737667)](https://packagist.org/packages/cyberline/detect-opcode-cache)[![License](https://camo.githubusercontent.com/2b8e3e56846ae63871ab716d83981e51f5ce3646347aa09aff0e1b74900724bf/68747470733a2f2f706f7365722e707567782e6f72672f63796265726c696e652f6465746563742d6f70636f64652d63616368652f6c6963656e73652e737667)](https://packagist.org/packages/cyberline/detect-opcode-cache)

Detect whether PHP is running an opcode cache

Example
-------

[](#example)

```
\DetectOpCodeCache\DetectOpCodeCache::checkAll();
\DetectOpCodeCache\DetectOpCodeCache::hasApc();

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

4203d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cd47ea0e6386fbd6df9c9475eb3d2e97a4741852b2dd8f3ce9fe4da28325d0a3?d=identicon)[CyberLine](/maintainers/CyberLine)

---

Top Contributors

[![CyberLine](https://avatars.githubusercontent.com/u/195617?v=4)](https://github.com/CyberLine "CyberLine (2 commits)")

### Embed Badge

![Health badge](/badges/cyberline-detect-opcode-cache/health.svg)

```
[![Health](https://phpackages.com/badges/cyberline-detect-opcode-cache/health.svg)](https://phpackages.com/packages/cyberline-detect-opcode-cache)
```

PHPackages © 2026

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