An open API service indexing awesome lists of open source software.

https://github.com/citrus-framework/intersection

php switch library
https://github.com/citrus-framework/intersection

citrus citrus-framework library php8 php83 switch switcher

Last synced: 5 months ago
JSON representation

php switch library

Awesome Lists containing this project

README

        

# Citrus Intersection
php switch library

## Install
```
composer require citrus-framework/intersection
```

## USAGE

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

// $result: 'Alice'
```