PHPackages                             thumbtack/crankshaft - 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. thumbtack/crankshaft

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

thumbtack/crankshaft
====================

Iteration Utils for PHP similar to Python itertools

86PHP

Since Jun 6Pushed 12y ago1 watchersCompare

[ Source](https://github.com/thumbtack/crankshaft)[ Packagist](https://packagist.org/packages/thumbtack/crankshaft)[ RSS](/packages/thumbtack-crankshaft/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Crankshaft
==========

[](#crankshaft)

A PHP version of Python's itertools.

Supported functions include `map`, `filter`, `each`, and `reduce`.

Basic usage:

```
require_once('crankshaft.php');

$a = tt_iter([1, 2, 3])
    ->map(function($x) { return 2 * x; })
    ->to_array();

// $a is now [2, 4, 8]
```

Running Tests
-------------

[](#running-tests)

This requires [simpletest](http://simpletest.org/) to be installed.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/124729?v=4)[Chris Mueller](/maintainers/visualmotive)[@visualmotive](https://github.com/visualmotive)

---

Top Contributors

[![visualmotive](https://avatars.githubusercontent.com/u/124729?v=4)](https://github.com/visualmotive "visualmotive (2 commits)")

### Embed Badge

![Health badge](/badges/thumbtack-crankshaft/health.svg)

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

###  Alternatives

[ahuggins/open-on-make

Automatically open files in editor when Artisan make:\* is executed

9920.2k](/packages/ahuggins-open-on-make)[nystudio107/richvariables

Allows you to easily use Craft Globals as variables in Rich Text fields

441.5k](/packages/nystudio107-richvariables)

PHPackages © 2026

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