PHPackages                             mpstyle/plazy - 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. mpstyle/plazy

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

mpstyle/plazy
=============

Lazy data access library

018PHP

Since Aug 6Pushed 9y agoCompare

[ Source](https://github.com/MpStyle/plazy)[ Packagist](https://packagist.org/packages/mpstyle/plazy)[ RSS](/packages/mpstyle-plazy/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

plazy
=====

[](#plazy)

Another functional library for PHP 7.

Quickstart
----------

[](#quickstart)

To use *plazy* in your projects install *composer* and add to your *composer.json* file:

```
"require": {
    "mpstyle/plazy": "0.2.3"
}
```

Or run:

```
composer require "mpstyle/plazy"

```

Sequence
--------

[](#sequence)

The sequence class allows you to build up a computation out of smaller operations. It's similar to Java 8 Streams

Now we can try some of the following:

```
Sequence::sequence(1, 2, 3, 4)->filter(even); // lazily returns 2,4
Sequence::sequence(1, 2)->map(toString); // lazily returns "1", "2"
Sequence::sequence(1, 2, 3)->take(2); // lazily returns 1,2
Sequence::sequence(1, 2, 3)->drop(2); // lazily returns 3
Sequence::sequence(1, 2, 3)->tail(); // lazily returns 2,3
Sequence::sequence(1, 2, 3)->head(); // eagerly returns 1
Sequence::sequence(1, 3, 5)->find(even); // eagerly returns none()
Sequence::sequence(1, 2, 3)->contains(2); // eagerly returns true
Sequence::sequence(1, 2, 3)->toString(":"); // eagerly returns "1:2:3"
```

Option
------

[](#option)

Optional value - type-safe null

Functions
---------

[](#functions)

plazy provides some interfaces for functional uages, such as:

- F: to transform an object to another one.
- Predicate: to filter/select/match an object.
- Validator: to validate an object.

Developers
----------

[](#developers)

To run unit test, run in the root of the plazy project:

```
composer phptest

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.1% 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://avatars.githubusercontent.com/u/527046?v=4)[Michele Pagnin](/maintainers/MpStyle)[@MpStyle](https://github.com/MpStyle)

---

Top Contributors

[![MpStyle](https://avatars.githubusercontent.com/u/527046?v=4)](https://github.com/MpStyle "MpStyle (4 commits)")[![mtoolkit](https://avatars.githubusercontent.com/u/16403140?v=4)](https://github.com/mtoolkit "mtoolkit (3 commits)")

### Embed Badge

![Health badge](/badges/mpstyle-plazy/health.svg)

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

###  Alternatives

[efficiently/jquery-laravel

This package provides jQuery and the jQuery-ujs driver for your Laravel &gt;= 6 application.

1411.3k1](/packages/efficiently-jquery-laravel)[typerocket/laravel

Makes form building and model binding a breeze.

103.8k](/packages/typerocket-laravel)

PHPackages © 2026

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