PHPackages                             ali-eltaweel/cartesian-product - 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. ali-eltaweel/cartesian-product

ActiveLibrary

ali-eltaweel/cartesian-product
==============================

PHP Iterables Cartesian Product

1.0.0(9mo ago)07PHPPHP ^8.1

Since Jul 21Pushed 9mo agoCompare

[ Source](https://github.com/ali-eltaweel/cartesian-product)[ Packagist](https://packagist.org/packages/ali-eltaweel/cartesian-product)[ RSS](/packages/ali-eltaweel-cartesian-product/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Cartesian Product
=================

[](#cartesian-product)

**PHP Iterables Cartesian Product**

Installation
------------

[](#installation)

```
composer require ali-eltaweel/cartesian-product
```

Usage
-----

[](#usage)

```
use CartesianProduct\CartesianProduct;

$cp = new CartesianProduct();

$cp->add(['a', 'b', 'c']);
$cp->add(['1', '2', '3']);
$cp->add(['+', '-', '*']);

foreach ($cp as $combination) {

    // ...
}
```

### With keys

[](#with-keys)

```
use CartesianProduct\CartesianProduct;

$cp = new CartesianProduct();

$cp->add(['a', 'b', 'c'], 'letter');
$cp->add(['1', '2', '3'], 'number');
$cp->add(['+', '-', '*'], 'symbol');

foreach ($cp as $combination) {

    // ...
}
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance56

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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

294d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7564e10ba11b25d8700726a92f669e38be2ff9191e8f6ccdfafc36678ffab2b8?d=identicon)[ali-eltaweel](/maintainers/ali-eltaweel)

---

Top Contributors

[![ali-eltaweel](https://avatars.githubusercontent.com/u/45892756?v=4)](https://github.com/ali-eltaweel "ali-eltaweel (1 commits)")

### Embed Badge

![Health badge](/badges/ali-eltaweel-cartesian-product/health.svg)

```
[![Health](https://phpackages.com/badges/ali-eltaweel-cartesian-product/health.svg)](https://phpackages.com/packages/ali-eltaweel-cartesian-product)
```

PHPackages © 2026

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