PHPackages                             strictify/lazy - 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. strictify/lazy

ActiveLibrary

strictify/lazy
==============

0617↓50%PHPCI passing

Since Jun 4Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/strictify/lazy)[ Packagist](https://packagist.org/packages/strictify/lazy)[ RSS](/packages/strictify-lazy/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Type Coverage](https://camo.githubusercontent.com/89490f3c8d3ea9dbb4a3c035ed472bc2caa1545bcb68352885171c1a39a4133e/68747470733a2f2f73686570686572642e6465762f6769746875622f7374726963746966792f6c617a792f636f7665726167652e737667)](https://shepherd.dev/github/strictify/lazy)

### Add laziness to data evaluation

[](#add-laziness-to-data-evaluation)

#### Requirements

[](#requirements)

PHP ^8.0

#### Installation

[](#installation)

```
composer require strictify/lazy
```

Usage:

```
use Strictify\Lazy\LazyValue;

function someSlowFunction() {
    sleep(5);

    return 42;
}

// assigning the value does nothing
$lazy = new LazyValue(fn() => someSlowFunction());

// waits 5 seconds, returns 42
$lazy->getValue();

// immediately returns 42
$lazy->getValue();
```

Full static analysis; psalm will always know the correct type.

More real cases soon.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a8e8e0cc6cf0221e426e0bc71ef0506f674882679a316e134342bfabd74a3889?d=identicon)[strictify](/maintainers/strictify)

---

Top Contributors

[![zmitic](https://avatars.githubusercontent.com/u/1964158?v=4)](https://github.com/zmitic "zmitic (16 commits)")

---

Tags

lazyphp8

### Embed Badge

![Health badge](/badges/strictify-lazy/health.svg)

```
[![Health](https://phpackages.com/badges/strictify-lazy/health.svg)](https://phpackages.com/packages/strictify-lazy)
```

PHPackages © 2026

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