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
- Host: GitHub
- URL: https://github.com/citrus-framework/intersection
- Owner: citrus-framework
- License: mit
- Created: 2020-02-23T02:06:38.000Z (over 5 years ago)
- Default Branch: ver_1.0.0.0
- Last Pushed: 2024-07-02T19:18:59.000Z (about 1 year ago)
- Last Synced: 2025-02-15T21:32:39.635Z (5 months ago)
- Topics: citrus, citrus-framework, library, php8, php83, switch, switcher
- Language: PHP
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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'
```