PHPackages                             nazo/safeapc - 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. nazo/safeapc

ActiveLibrary

nazo/safeapc
============

APC Cache Safe Using Wrapper

0.3(4y ago)329MITPHPPHP &gt;=7.3.0

Since May 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/nazo/safeapc)[ Packagist](https://packagist.org/packages/nazo/safeapc)[ Docs](http://github.com/nazo/safeapc)[ RSS](/packages/nazo-safeapc/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

SafeApc - PHP APC Cache Safe Using Wrapper
==========================================

[](#safeapc---php-apc-cache-safe-using-wrapper)

Usage
-----

[](#usage)

```
use SafeApc;

// initialize
$apc = new SafeApc();
$apc->setCacheStartTime($_SERVER['REQUEST_TIME']);
$apc->setCacheVersionKey(file_get_contents('apc_version'));

// set key
$apc->set('cache key', $value, 100);

// get key (throws SafeApcNotFoundException)
$apc->get('cache key');

// delete key
$apc->delete('cache key');
```

clear all cache
---------------

[](#clear-all-cache)

change version key

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Every ~1242 days

Total

3

Last Release

1532d ago

PHP version history (2 changes)0.1PHP &gt;=5.3.0

0.3PHP &gt;=7.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/41dc0ff6aef0598d70959792504c044a743828c9acee151a1923cddfa48c4558?d=identicon)[nazo](/maintainers/nazo)

---

Top Contributors

[![nazo](https://avatars.githubusercontent.com/u/27373?v=4)](https://github.com/nazo "nazo (8 commits)")

---

Tags

apc

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nazo-safeapc/health.svg)

```
[![Health](https://phpackages.com/badges/nazo-safeapc/health.svg)](https://phpackages.com/packages/nazo-safeapc)
```

###  Alternatives

[phpfastcache/phpfastcache

PHP Abstract Cache Class - Reduce your database call using cache system. Phpfastcache handles a lot of drivers such as Apc(u), Cassandra, CouchBase, Couchdb, Dynamodb, Firestore, Mongodb, Files, (P)redis, Leveldb, Memcache(d), Ravendb, Ssdb, Sqlite, Wincache, Xcache, Zend Data Cache.

2.4k5.0M130](/packages/phpfastcache-phpfastcache)[tedivm/stash

The place to keep your cache.

9824.8M124](/packages/tedivm-stash)[matthiasmullie/scrapbook

Scrapbook is a PHP cache library, with adapters for e.g. Memcached, Redis, Couchbase, APCu, SQL and additional capabilities (e.g. transactions, stampede protection) built on top.

3212.5M32](/packages/matthiasmullie-scrapbook)[clue/term-react

Streaming terminal emulator, built on top of ReactPHP.

10410.2M2](/packages/clue-term-react)[desarrolla2/cache

Provides an cache interface for several adapters Apc, Apcu, File, Mongo, Memcache, Memcached, Mysql, Mongo, Redis is supported.

1322.5M47](/packages/desarrolla2-cache)[tedivm/stash-bundle

Incorporates the Stash caching library into Symfony.

841.4M16](/packages/tedivm-stash-bundle)

PHPackages © 2026

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