PHPackages                             citrus-framework/intersection - 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. citrus-framework/intersection

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

citrus-framework/intersection
=============================

php switch library

v1.0.3(1y ago)1859[1 issues](https://github.com/citrus-framework/intersection/issues)3MITPHP

Since Apr 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/citrus-framework/intersection)[ Packagist](https://packagist.org/packages/citrus-framework/intersection)[ RSS](/packages/citrus-framework-intersection/feed)WikiDiscussions ver\_1.0.0.0 Synced 1mo ago

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

Citrus Intersection
===================

[](#citrus-intersection)

php switch library

Install
-------

[](#install)

```
composer require citrus-framework/intersection

```

USAGE
-----

[](#usage)

```
$value = 'admin';
$result = Intersection::fetch($value, [
    'user' => function () {
        return 'John';
    },
    'admin' => function () {
        return 'Alice';
    },
    'owner' => 'Michael',
], true);

// $result: 'Alice'
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

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 ~772 days

Total

3

Last Release

685d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/767e1458ae939fbffbee4c47e554b5d02063d7e93846d86159a22507f37b9dda?d=identicon)[take64](/maintainers/take64)

---

Top Contributors

[![take64](https://avatars.githubusercontent.com/u/2959241?v=4)](https://github.com/take64 "take64 (15 commits)")

---

Tags

citruscitrus-frameworklibraryphp8php83switchswitcherphplibraryswitchercitrus

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/citrus-framework-intersection/health.svg)

```
[![Health](https://phpackages.com/badges/citrus-framework-intersection/health.svg)](https://phpackages.com/packages/citrus-framework-intersection)
```

PHPackages © 2026

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