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. [Caching](/categories/caching)
4. /
5. nazo/safeapc

ActiveLibrary[Caching](/categories/caching)

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 today

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 31% 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

1578d 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

[tedivm/stash

The place to keep your cache.

9614.9M127](/packages/tedivm-stash)[tedivm/stash-bundle

Incorporates the Stash caching library into Symfony.

871.4M16](/packages/tedivm-stash-bundle)[sabre/cache

Simple cache abstraction layer implementing PSR-16

551.3M5](/packages/sabre-cache)[jamm/memory

Key-value storage in memory. As a storage can be used: APC, Redis, Memcache, Shared memory. All storage objects have one interface, so you can switch them without changing the working code. Contains PHP Redis client.

13327.0k1](/packages/jamm-memory)[ihor/cachalot

Cache a lot in a proper way (APC, XCache, Memcached, Redis, Couchbase)

2528.4k](/packages/ihor-cachalot)

PHPackages © 2026

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