PHPackages                             concept/cartesian-tree - 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. concept/cartesian-tree

ActiveLibrary

concept/cartesian-tree
======================

A Laravel package that implements the cartesian algorithm to generate permutations out of a sequence of arrays.

1.0.1(5y ago)17MITPHPPHP &gt;= 5.5.0

Since Sep 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/M-Farag/concept-cartesian-tree)[ Packagist](https://packagist.org/packages/concept/cartesian-tree)[ RSS](/packages/concept-cartesian-tree/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Cartesian tree
--------------

[](#cartesian-tree)

A Laravel package that implements the cartesian algorithm to generate permutations out of a sequence of arrays.

#### What is this package?

[](#what-is-this-package)

If you want to generate all of the possible permutations by combining multiple arrays, This package will do it for you.

#### How to install it?

[](#how-to-install-it)

Run this comman within your Laravel application `composer require concept/cartesian-tree`

#### How to use it?

[](#how-to-use-it)

- Use the package within any class in your codebase by importing the package's model
- Within any method, Call the static method **buildPermutations** to combine any given array and generate a single array of all permutations.

```

```

*Results will be like this:*

```
Array
(
    [0] => Array
        (
            [0] => 1
            [1] => a
        )

    [1] => Array
        (
            [0] => 1
            [1] => b
        )

    [2] => Array
        (
            [0] => 1
            [1] => c
        )

    [3] => Array
        (
            [0] => 2
            [1] => a
        )

    [4] => Array
        (
            [0] => 2
            [1] => b
        )

    [5] => Array
        (
            [0] => 2
            [1] => c
        )

    [6] => Array
        (
            [0] => 3
            [1] => a
        )

    [7] => Array
        (
            [0] => 3
            [1] => b
        )

    [8] => Array
        (
            [0] => 3
            [1] => c
        )

)

```

#### Please Note

[](#please-note)

- You can combine as many arrays as you want.
- I used this package to combine up to 7 different arrays.

#### Upcoming updates

[](#upcoming-updates)

- PHPUNIT Testing.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Every ~0 days

Total

2

Last Release

2083d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/42836754?v=4)[Mina Farag](/maintainers/M-Farag)[@M-Farag](https://github.com/M-Farag)

---

Top Contributors

[![M-Farag](https://avatars.githubusercontent.com/u/42836754?v=4)](https://github.com/M-Farag "M-Farag (3 commits)")

### Embed Badge

![Health badge](/badges/concept-cartesian-tree/health.svg)

```
[![Health](https://phpackages.com/badges/concept-cartesian-tree/health.svg)](https://phpackages.com/packages/concept-cartesian-tree)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[dragon-code/migrate-db

Easy data transfer from one database to another

15717.4k](/packages/dragon-code-migrate-db)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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