citrus-framework/intersection

php switch library

Installs: 755

Dependents: 4

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 1

pkg:composer/citrus-framework/intersection

v1.0.3 2024-07-02 19:18 UTC

This package is auto-updated.

Last update: 2025-10-30 22:04:41 UTC


README

php switch library

Install

composer require citrus-framework/intersection

USAGE

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

// $result: 'Alice'