PHPackages                             nerd-components/lambda - 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. nerd-components/lambda

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

nerd-components/lambda
======================

Lambda-function generator

3.0.1(5y ago)198[1 PRs](https://github.com/nerd-components/lambda/pulls)1MITPHPPHP &gt;=7.4CI failing

Since May 31Pushed 5mo agoCompare

[ Source](https://github.com/nerd-components/lambda)[ Packagist](https://packagist.org/packages/nerd-components/lambda)[ RSS](/packages/nerd-components-lambda/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (3)Versions (11)Used By (1)

php-lambda
==========

[](#php-lambda)

[![Build Status](https://camo.githubusercontent.com/a5dd37bca8b3a21bc82b6cb5d67d7a84ccece06f1b4557ddfe45473a4957174e/68747470733a2f2f7472617669732d63692e636f6d2f6e6572642d6672616d65776f726b2f6c616d6264612e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/nerd-framework/lambda)[![Coverage Status](https://camo.githubusercontent.com/72e99f91dfada73c2357fe5a1e720f0d9cb4dfef78b48d88b5734170249087d7/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6e6572642d6672616d65776f726b2f6c616d6264612f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/nerd-framework/lambda?branch=master)[![StyleCI](https://camo.githubusercontent.com/f4ba57e69a33bd5bfea28c119fbe6aa3e441f2a3a62fd574be04bd2b27e0213c/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f36303130323638372f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/60102687?branch=master)

Generates lambda function using given string pattern.

Example
-------

[](#example)

```
use function Lambda\l;

// Unindexed placeholders mode
$sum = l('$ + $');

echo $sum(2, 4); // will output 6

// Indexed placeholders mode
$func = l('$0 + ($0 * $1)');

echo $func(2, 6); // will output 14

// Filtering function
$numbers = range(1, 10);

$evens = array_filter(l('$ % 2 == 0'), $numbers); // will produce array [2, 4, 6, 8, 10]
```

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance49

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity69

Established project with proven stability

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

Recently: every ~461 days

Total

7

Last Release

1825d ago

Major Versions

v1.0.2 → v2.0.02016-10-02

v2.0.1 → 3.0.02021-07-03

PHP version history (2 changes)v1.0.1PHP &gt;=5.6

3.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b15606ac61bb3a0a0c37f0634e950a5168f617fac716edc2eb83392a14b2e89?d=identicon)[pldin601](/maintainers/pldin601)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/nerd-components-lambda/health.svg)

```
[![Health](https://phpackages.com/badges/nerd-components-lambda/health.svg)](https://phpackages.com/packages/nerd-components-lambda)
```

###  Alternatives

[velhron/dadata-bundle

DaData for Symfony

2183.1k](/packages/velhron-dadata-bundle)

PHPackages © 2026

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