PHPackages                             alexey-kupershtokh/lazy-apc-class-loader - 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. alexey-kupershtokh/lazy-apc-class-loader

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

alexey-kupershtokh/lazy-apc-class-loader
========================================

1.1.0(11y ago)02.4k1[1 issues](https://github.com/AlexeyKupershtokh/LazyApcClassLoader/issues)MITPHP

Since Oct 6Pushed 11y ago1 watchersCompare

[ Source](https://github.com/AlexeyKupershtokh/LazyApcClassLoader)[ Packagist](https://packagist.org/packages/alexey-kupershtokh/lazy-apc-class-loader)[ RSS](/packages/alexey-kupershtokh-lazy-apc-class-loader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

LazyApcClassLoader
==================

[](#lazyapcclassloader)

This package was heavily inspired by the [Symfony2 ClassLoader component](http://symfony.com/doc/current/components/class_loader/cache_class_loader.html).

But it should be even better from performance point of view: It does not require composer's autoloader to be initially loaded which is necessary for the ApcClassLoader to work. Instead, LazyApcClassLoader can work alone in many cases and use composer's one only as a fallback on cache misses. Usually it's enough to load only 1 file instead of 8.

Installation
------------

[](#installation)

```
composer require alexey-kupershtokh/lazy-apc-class-loader
```

Usage
-----

[](#usage)

```
require_once(__DIR__ . '/vendor/alexey-kupershtokh/lazy-apc-class-loader/src/LazyApcClassLoader.php');

$loader = new \AlexeyKupershtokh\LazyApcClassLoader\LazyApcClassLoader(
    'my_prefix',
    function () {
        // init composer autoloader if ever needed
        return require_once __DIR__ . '/vendor/autoload.php';
    }
);
$loader->register();
```

Benchmark
---------

[](#benchmark)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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 ~6 days

Total

2

Last Release

4230d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/08a0e25ce82041e363606cc90327a7efcf1704cad5634dd554409a798dbf4b39?d=identicon)[AlexeyKupershtokh](/maintainers/AlexeyKupershtokh)

---

Top Contributors

[![AlexeyKupershtokh](https://avatars.githubusercontent.com/u/499778?v=4)](https://github.com/AlexeyKupershtokh "AlexeyKupershtokh (9 commits)")

### Embed Badge

![Health badge](/badges/alexey-kupershtokh-lazy-apc-class-loader/health.svg)

```
[![Health](https://phpackages.com/badges/alexey-kupershtokh-lazy-apc-class-loader/health.svg)](https://phpackages.com/packages/alexey-kupershtokh-lazy-apc-class-loader)
```

###  Alternatives

[alexandre-daubois/lazy-stream

Write data to streams, only when it is really needed to.

755.7k](/packages/alexandre-daubois-lazy-stream)[dem13n/discussion-cards

Output of discussions in form of cards

164.6k](/packages/dem13n-discussion-cards)

PHPackages © 2026

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