PHPackages                             anarchitecture/combinatorics - 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. anarchitecture/combinatorics

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

anarchitecture/combinatorics
============================

Combinatorics helpers for functional pipelines (powerset, permutations, allocations) for PHP 8.5+.

v0.1.3(5mo ago)04MITPHPPHP ^8.5CI passing

Since Jan 15Pushed 5mo agoCompare

[ Source](https://github.com/Anarchitecture/combinatorics)[ Packagist](https://packagist.org/packages/anarchitecture/combinatorics)[ RSS](/packages/anarchitecture-combinatorics/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (5)Used By (0)

anarchitecture/combinatorics
============================

[](#anarchitecturecombinatorics)

[![CI](https://github.com/Anarchitecture/combinatorics/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Anarchitecture/combinatorics/actions/workflows/ci.yml) [![Latest Version](https://camo.githubusercontent.com/32f20f1d54c148ce31e099ca84afeb975b123ca142c29f34a2aaaf6afc37df1c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e6172636869746563747572652f636f6d62696e61746f72696373)](https://packagist.org/packages/anarchitecture/combinatorics) [![License](https://camo.githubusercontent.com/e94c5a646008f54634c5a32b57b84c43cbfe8067716b75db710401af76c0db46/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616e6172636869746563747572652f636f6d62696e61746f72696373)](https://github.com/Anarchitecture/combinatorics/blob/main/LICENSE)

Combinatorics helpers for functional pipelines in **PHP 8.5+**, designed to pair nicely with the pipe operator (`|>`) and the `anarchitecture/pipe` library.

This package intentionally focuses on *search-space* helpers (often exponential). Keep your core FP primitives in a smaller library, and pull these in when you need them.

Install
-------

[](#install)

```
composer require anarchitecture/combinatorics
```

Usage
-----

[](#usage)

```
