foxworn3365 / listdictionaries
Use arrays and object in PHP as List<T> and Dictionary<T, T> in C#
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/foxworn3365/listdictionaries
Requires
- php: ^8.0
This package is auto-updated.
Last update: 2025-09-15 18:59:49 UTC
README
List<T>
and Dictionary<T, T>
in PHP
Install
You can install it on composer
composer require foxworn3365/listdictionaries
Examples
List
$list = PHPList::new("string|int", [ "hello", "goodbye", "your name is owo" ]); $list->where(fn($el) => strpos($el, "e"))->foreach(function ($el) { echo $el . PHP_EOL; });
Result:
hello
your name is owo