PHPackages                             lasso3000/enumerable - 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. lasso3000/enumerable

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

lasso3000/enumerable
====================

Inspired by ruby's Enumerable module, this library allows you to create enumerables in PHP.

241PHP

Since Mar 14Pushed 7y agoCompare

[ Source](https://github.com/lasso/Enumerable.php)[ Packagist](https://packagist.org/packages/lasso3000/enumerable)[ RSS](/packages/lasso3000-enumerable/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/58f57b056e33a342e7400385c72c8e72809c820365f8ef31f09b7f0c5d8de467/68747470733a2f2f7472617669732d63692e6f72672f6c6173736f2f456e756d657261626c652e7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lasso/Enumerable.php) [![Code Climate](https://camo.githubusercontent.com/c8a517acefcb26a0e04f5cf87c71ebb94e89651551ccfa1e05e60908572f62aa/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6c6173736f2f456e756d657261626c652e7068702f6261646765732f6770612e737667)](https://codeclimate.com/github/lasso/Enumerable.php) [![codecov](https://camo.githubusercontent.com/564fd04ca19cadc4ed995c443541d57729c49a1d3918a667927e6fc067f2a9ca/68747470733a2f2f636f6465636f762e696f2f67682f6c6173736f2f456e756d657261626c652e7068702f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/lasso/Enumerable.php) [![Latest docs](https://camo.githubusercontent.com/c64b0e8a7cb82bf9ca9c14c7dbb18e66b0d3ef718977c7e35afdc0674820689a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63732d6c61746573742d627269676874677265656e2e7376673f7374796c653d666c6174)](https://docs.lassoweb.se/Enumerable.php)

lasso3000/enumerable
====================

[](#lasso3000enumerable)

Inspired by ruby's Enumerable module, this library allows you to create enumerables in PHP. It is similar in function to [Knapsack](https://dusankasan.github.io/Knapsack/), but tries to stay a bit closer to ruby in naming and spirit.

How to use this library in your own project
-------------------------------------------

[](#how-to-use-this-library-in-your-own-project)

`composer require lasso3000/enumerable`

Code samples
------------

[](#code-samples)

Please have a look at the [wiki](https://github.com/lasso/Enumerable.php/wiki).

How to fork/work with this library
----------------------------------

[](#how-to-forkwork-with-this-library)

### Clone the repository

[](#clone-the-repository)

`git clone https://github.com/lasso/Enumerable.php.git`

### Install dependencies

[](#install-dependencies)

`composer install`

### Run tests

[](#run-tests)

`vendor/bin/phpunit --bootstrap vendor/autoload.php tests`

### Run tests with coverage (XDebug must be installed)

[](#run-tests-with-coverage-xdebug-must-be-installed)

`vendor/bin/phpunit --bootstrap vendor/autoload.php --coverage-html=coverage --whitelist=src tests`

### Generate docs (will be placed in the phpdoc directory)

[](#generate-docs-will-be-placed-in-the-phpdoc-directory)

`vendor/bin/phpdoc -d src/ -t phpdoc --template="responsive-twig"`

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

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://avatars.githubusercontent.com/u/335518?v=4)[Lars Olsson](/maintainers/lasso)[@lasso](https://github.com/lasso)

---

Top Contributors

[![lasso](https://avatars.githubusercontent.com/u/335518?v=4)](https://github.com/lasso "lasso (33 commits)")

### Embed Badge

![Health badge](/badges/lasso3000-enumerable/health.svg)

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

###  Alternatives

[components/highlightjs

Highlight.js highlights syntax in code examples on blogs, forums and in fact on any web pages.

102210.6k10](/packages/components-highlightjs)[treeware/plant

13358.6k7](/packages/treeware-plant)[badcow/shortcodes

1133.8k](/packages/badcow-shortcodes)[dql/valueobjects

A helper library for making valueobjects

115.6k2](/packages/dql-valueobjects)

PHPackages © 2026

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