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

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

[webpatser/laravel-countries

Modern Laravel Countries package providing ISO 3166-2, ISO 3166-3, currency, capital and more for all countries. Compatible with Laravel 11.x and 12.x.

8272.8M8](/packages/webpatser-laravel-countries)[ssch/typo3-encore

Use Webpack Encore in TYPO3 Context

107465.5k4](/packages/ssch-typo3-encore)[loganmarchione/homelab-svg-assets

Full-color SVG icons of homelab-related software, products, and brands

1.2k1.6k](/packages/loganmarchione-homelab-svg-assets)[swisnl/filament-backgrounds

Beautiful backgrounds for Filament auth pages

54149.2k6](/packages/swisnl-filament-backgrounds)[dillingham/nova-grouped-field

Combine Nova fields into one output

41136.5k](/packages/dillingham-nova-grouped-field)[northwestern-sysdev/dynamic-forms

Dynamic Forms for Laravel

4953.8k1](/packages/northwestern-sysdev-dynamic-forms)

PHPackages © 2026

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