PHPackages                             jelle-s/arrayintersections - 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. jelle-s/arrayintersections

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

jelle-s/arrayintersections
==========================

Tries to find intersections between a combination of arrays.

1.0.0(9y ago)116311GPL-3.0+PHP

Since Dec 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Jelle-S/arrayintersections)[ Packagist](https://packagist.org/packages/jelle-s/arrayintersections)[ RSS](/packages/jelle-s-arrayintersections/feed)WikiDiscussions develop Synced 4w ago

READMEChangelog (1)Dependencies (1)Versions (4)Used By (1)

ArrayIntersections
==================

[](#arrayintersections)

[![Build Status](https://camo.githubusercontent.com/f43761167add096a3b14e3bd2691c6aa7d659c7f883d8e7351530a46c236fcd7/68747470733a2f2f7472617669732d63692e6f72672f4a656c6c652d532f6172726179696e74657273656374696f6e732e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/Jelle-S/arrayintersections) [![Code Climate](https://camo.githubusercontent.com/ddb57cb528aca6c8a4a0d051ccf7da3f1cf56cc07b2d3298a81a16e13d91be8a/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4a656c6c652d532f6172726179696e74657273656374696f6e732f6261646765732f6770612e737667)](https://codeclimate.com/github/Jelle-S/arrayintersections) [![Test Coverage](https://camo.githubusercontent.com/3bcc8fb5383472386ba07f39d462b0454aa9247147a3c4c17b080e787d135ad6/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4a656c6c652d532f6172726179696e74657273656374696f6e732f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/Jelle-S/arrayintersections/coverage) [![Issue Count](https://camo.githubusercontent.com/b49d6c6a7e3305044c437ff9eb8bb9aa703a381a8ddd561cfa2e758dcd5ddc8e/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4a656c6c652d532f6172726179696e74657273656374696f6e732f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/Jelle-S/arrayintersections)

Tries to find intersections between a combination of arrays.

```
use Jelle_S\Util\Intersections\ArrayIntersections;

// Get all possible intersections, where the minimum array size of an
// intersection is 3.
$arrays = array(
 array(
   'a' => 1,
   'b' => 2,
   'c' => 3,
   'd' => 4,
   'e' => 9,
 ),
 array(
   'a' => 1,
   'b' => 2,
   'c' => 3,
   'e' => 9,
 ),
 array(
   'a' => 1,
   'b' => 42,
   'c' => 3,
   'd' => 4,

 ),
 array(
   'b' => 42,
   'c' => 3,
   'a' => 1,
 ),
 array(
   'z' => 26,
   'e' => 9,
   'a' => 1,
 ),
);
$intersections = new Jelle_S\Util\Intersections\ArrayIntersections($arrays, 3);
print_r($intersections->getAll());

print_r($intersections->getLargest());
```

Output:

```
Array
(
    [2] => Array
        (
            [a] => 1
            [b] => 2
            [c] => 3
            [e] => 9
        )

    [1] => Array
        (
            [a] => 1
            [c] => 3
            [d] => 4
        )

    [0] => Array
        (
            [a] => 1
            [b] => 42
            [c] => 3
        )

)
Array
(
    [a] => 1
    [b] => 2
    [c] => 3
    [e] => 9
)

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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

3487d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fd0af1f056fd3baa2df55c0c745ade4d0f8af99505f717bf0ad48d7b615a2153?d=identicon)[Jelle-S](/maintainers/Jelle-S)

---

Top Contributors

[![Jelle-S](https://avatars.githubusercontent.com/u/1828542?v=4)](https://github.com/Jelle-S "Jelle-S (12 commits)")

### Embed Badge

![Health badge](/badges/jelle-s-arrayintersections/health.svg)

```
[![Health](https://phpackages.com/badges/jelle-s-arrayintersections/health.svg)](https://phpackages.com/packages/jelle-s-arrayintersections)
```

###  Alternatives

[markshust/magento2-module-pagebuildersourcecode

The Page Builder Source Code module adds a Source Code button to the toolbar of the Page Builder WYSIWYG editor.

120111.0k](/packages/markshust-magento2-module-pagebuildersourcecode)[sylius/cms-plugin

CMS plugin for Sylius applications.

1870.5k1](/packages/sylius-cms-plugin)

PHPackages © 2026

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