PHPackages                             louis-l/once - 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. louis-l/once

ActiveLibrary[Caching](/categories/caching)

louis-l/once
============

A magic memoization function

3.0.2(4y ago)014MITPHPPHP ^7.4

Since Nov 6Pushed 4y agoCompare

[ Source](https://github.com/louis-l/once)[ Packagist](https://packagist.org/packages/louis-l/once)[ Docs](https://github.com/louis-l/once)[ Fund](https://spatie.be/open-source/support-us)[ RSS](/packages/louis-l-once/feed)WikiDiscussions main Synced 5d ago

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

This is a forked repo from  to support PHP 7.4

This package rollback the code syntax to PHP 7.4 and use

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 70.9% 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 ~120 days

Recently: every ~150 days

Total

16

Last Release

1675d ago

Major Versions

0.0.1 → 1.0.02016-11-07

1.1.0 → 2.0.02018-01-31

2.2.1 → 3.0.02020-11-03

PHP version history (5 changes)0.0.1PHP ^7.0

2.1.0PHP ^7.2

2.2.1PHP ^7.2|^8.0

3.0.0PHP ^8.0

3.0.2PHP ^7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/955f9e19b1730edb2a09539d856954831d58875a4063e03db5e57d319097f994?d=identicon)[louisl25](/maintainers/louisl25)

---

Top Contributors

[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (100 commits)")[![ahmedofali](https://avatars.githubusercontent.com/u/22732463?v=4)](https://github.com/ahmedofali "ahmedofali (4 commits)")[![AdrianMrn](https://avatars.githubusercontent.com/u/12762044?v=4)](https://github.com/AdrianMrn "AdrianMrn (3 commits)")[![jimbojsb](https://avatars.githubusercontent.com/u/107836?v=4)](https://github.com/jimbojsb "jimbojsb (3 commits)")[![louis-l](https://avatars.githubusercontent.com/u/10172565?v=4)](https://github.com/louis-l "louis-l (3 commits)")[![sebastiandedeyne](https://avatars.githubusercontent.com/u/1561079?v=4)](https://github.com/sebastiandedeyne "sebastiandedeyne (3 commits)")[![ThibaudDauce](https://avatars.githubusercontent.com/u/1770543?v=4)](https://github.com/ThibaudDauce "ThibaudDauce (2 commits)")[![akoepcke](https://avatars.githubusercontent.com/u/5311185?v=4)](https://github.com/akoepcke "akoepcke (2 commits)")[![sergejostir](https://avatars.githubusercontent.com/u/21297285?v=4)](https://github.com/sergejostir "sergejostir (2 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (2 commits)")[![bastien-phi](https://avatars.githubusercontent.com/u/10199039?v=4)](https://github.com/bastien-phi "bastien-phi (2 commits)")[![kurtextrem](https://avatars.githubusercontent.com/u/502146?v=4)](https://github.com/kurtextrem "kurtextrem (2 commits)")[![JimChenWYU](https://avatars.githubusercontent.com/u/12371374?v=4)](https://github.com/JimChenWYU "JimChenWYU (1 commits)")[![nightlinus](https://avatars.githubusercontent.com/u/2681887?v=4)](https://github.com/nightlinus "nightlinus (1 commits)")[![prateekkathal](https://avatars.githubusercontent.com/u/7609893?v=4)](https://github.com/prateekkathal "prateekkathal (1 commits)")[![romm](https://avatars.githubusercontent.com/u/6342901?v=4)](https://github.com/romm "romm (1 commits)")[![TravisCarden](https://avatars.githubusercontent.com/u/959246?v=4)](https://github.com/TravisCarden "TravisCarden (1 commits)")[![amitmerchant1990](https://avatars.githubusercontent.com/u/3647841?v=4)](https://github.com/amitmerchant1990 "amitmerchant1990 (1 commits)")[![BrandonSurowiec](https://avatars.githubusercontent.com/u/5625680?v=4)](https://github.com/BrandonSurowiec "BrandonSurowiec (1 commits)")[![bhulsman](https://avatars.githubusercontent.com/u/612651?v=4)](https://github.com/bhulsman "bhulsman (1 commits)")

---

Tags

callablecachememoizationonce

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/louis-l-once/health.svg)

```
[![Health](https://phpackages.com/badges/louis-l-once/health.svg)](https://phpackages.com/packages/louis-l-once)
```

###  Alternatives

[spatie/once

A magic memoization function

1.4k29.1M79](/packages/spatie-once)[psr/simple-cache

Common interfaces for simple caching

8.1k727.3M2.1k](/packages/psr-simple-cache)[psr/cache

Common interface for caching libraries

5.2k686.9M1.3k](/packages/psr-cache)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[traderinteractive/memoize

A library for memoizing repeated function calls.

43125.7k](/packages/traderinteractive-memoize)[beste/in-memory-cache

A PSR-6 In-Memory cache that can be used as a fallback implementation and/or in tests.

2512.2M6](/packages/beste-in-memory-cache)

PHPackages © 2026

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