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

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

take64/citrus-intersection
==========================

php switch library

v1.0(6y ago)05MITPHP

Since Feb 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/take64/CitrusIntersection)[ Packagist](https://packagist.org/packages/take64/citrus-intersection)[ RSS](/packages/take64-citrus-intersection/feed)WikiDiscussions ver\_1.0.0.0 Synced 6d ago

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

CitrusIntersection
==================

[](#citrusintersection)

php switch library

USAGE
=====

[](#usage)

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

// $result: 'Alice'
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

2278d 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 (5 commits)")

---

Tags

citrusphpphp7switcherphplibrarycitrus

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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