citrus-framework/intersection

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

This package is auto-updated.

Last update: 2025-03-30 20:54:58 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'