PHPackages                             phpyh/lru-memoizer - 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. phpyh/lru-memoizer

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

phpyh/lru-memoizer
==================

PHPyh LRU Memoizer

0.2.0(3y ago)75.2k↓50%1MITPHPPHP ^8.1

Since Feb 25Pushed 3y ago2 watchersCompare

[ Source](https://github.com/phpyh/lru-memoizer)[ Packagist](https://packagist.org/packages/phpyh/lru-memoizer)[ RSS](/packages/phpyh-lru-memoizer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

PHPyh LRU Memoizer
==================

[](#phpyh-lru-memoizer)

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

[](#installation)

```
composer require phpyh/lru-memoizer
```

Usage
-----

[](#usage)

```
use PHPyh\LRUMemoizer\LRUMemoizer;

final class Metadata {}

final class MetadataFactory
{
    public function __construct(
        private readonly LRUMemoizer $memoizer = new LRUMemoizer(capacity: 25),
    ) {
    }

    /**
     * @param ?class-string $class
     */
    public function metadataFor(string $class): Metadata
    {
        return $this->memoizer->get($class, static fn (): Metadata => new Metadata());
    }
}
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

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

Total

2

Last Release

1174d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2552865?v=4)[Valentin Udaltsov](/maintainers/vudaltsov)[@vudaltsov](https://github.com/vudaltsov)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/phpyh-lru-memoizer/health.svg)

```
[![Health](https://phpackages.com/badges/phpyh-lru-memoizer/health.svg)](https://phpackages.com/packages/phpyh-lru-memoizer)
```

###  Alternatives

[mageplaza/module-gdpr

Magento 2 GDPR Extensions

52333.4k1](/packages/mageplaza-module-gdpr)[prooph/event-store-bus-bridge

Marry CQRS with Event Sourcing

37518.3k11](/packages/prooph-event-store-bus-bridge)[loveorigami/yii2-modal-ajax

A wrapper around Yii2 Bootstrap Modal for using an ActiveForm via AJAX inside

50167.8k2](/packages/loveorigami-yii2-modal-ajax)[proner/phppimaco

Lib para geração de Etiquetas PIMACO

7470.0k](/packages/proner-phppimaco)[yii2mod/collection

Basic collection library

31177.6k5](/packages/yii2mod-collection)[elgentos/magento2-inventory-log

Magento 2 - Inventory Log

3073.8k](/packages/elgentos-magento2-inventory-log)

PHPackages © 2026

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