PHPackages                             kdaviesnz/list - 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. kdaviesnz/list

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

kdaviesnz/list
==============

Enables functional style syntax eg $list-&gt;filter($cb)-&gt;map($cb2)

v0.1.0(6y ago)02MITPHPPHP &gt;=7.0.0

Since Jun 4Pushed 6y agoCompare

[ Source](https://github.com/kdaviesnz/lists)[ Packagist](https://packagist.org/packages/kdaviesnz/list)[ Docs](http://github/kdaviesnz)[ RSS](/packages/kdaviesnz-list/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Problem

You have an array and you need to remove anything that is not a number and double everything else.

Solution

$a = kdaviesnz/utilities/lists(\[null, "apple", 1,2,3\]);

$result = $a-&gt;filter(function($item) { return is\_numeric($item) } )-&gt;map(function($item) { return $item \* 2 } )()

$a\_parsed = $result()

See tests/listsTest.php

lists
=====

[](#lists)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community3

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

2531d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b63930ad10271ff6fe9e1ce3446ebc46b67edda7afc70fd09a3970f55215617?d=identicon)[kdaviesnz](/maintainers/kdaviesnz)

---

Top Contributors

[![kdaviesnz](https://avatars.githubusercontent.com/u/2062483?v=4)](https://github.com/kdaviesnz "kdaviesnz (1 commits)")

---

Tags

filtermapfunctionalfoldlfoldr

### Embed Badge

![Health badge](/badges/kdaviesnz-list/health.svg)

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

###  Alternatives

[phpcollection/phpcollection

General-Purpose Collection Library for PHP

1.0k64.0M34](/packages/phpcollection-phpcollection)[lstrojny/functional-php

Functional primitives for PHP

2.0k7.3M48](/packages/lstrojny-functional-php)[dasprid/enum

PHP 7.1 enum implementation

379146.0M11](/packages/dasprid-enum)[marc-mabe/php-enum

Simple and fast implementation of enumerations with native PHP

49444.8M97](/packages/marc-mabe-php-enum)[nikic/iter

Iteration primitives using generators

1.1k5.9M38](/packages/nikic-iter)[spatie/geocoder

Geocoding addresses to coordinates

8404.8M15](/packages/spatie-geocoder)

PHPackages © 2026

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