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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ali-eltaweel/cartesian-product

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

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

PHP Iterables Cartesian Product

1.0.0(11mo ago)09PHPPHP ^8.1

Since Jul 21Pushed 11mo 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 today

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

28

—

LowBetter than 52% of packages

Maintenance51

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

347d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/45892756?v=4)[Ali Kamel](/maintainers/ali-eltaweel)[@ali-eltaweel](https://github.com/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)
```

###  Alternatives

[thujohn/share

Share links with Laravel 4

4219.0k](/packages/thujohn-share)[dmhendricks/wordpress-toolkit

A collection of helper classes and functions for WordPress plugins and themes.

148.1k1](/packages/dmhendricks-wordpress-toolkit)[muqsit/asynciterator

A virion that simplifies writing tasks that traverse iterators

183.1k](/packages/muqsit-asynciterator)

PHPackages © 2026

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