dormilich / array-list
A simple immutable PHP array iterator.
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 2
Open Issues: 0
pkg:composer/dormilich/array-list
Requires
- php: ^5.6 || ^7.0
Requires (Dev)
- phpunit/phpunit: ^5.0
This package is auto-updated.
Last update: 2025-10-22 02:02:34 UTC
README
A simple immutable array iterator based on the native ArrayIterator class.
Installation
Install via Composer:
composer require dormilich/array-list
Supported methods
- append()→ array_push()
- asort()→ asort()
- contains()→ in_array()
- countValues()→ array_count_values()
- filter()¹ → array_filter()
- join()→ implode()
- keys()→ array_keys()
- ksort()→ ksort()
- map()¹ → array_map()
- natcasesort()→ natcasesort()
- natsort()→ natsort()
- prepend()→ array_unshift()
- reduce()¹ → array_reduce()
- reject()¹ (the inverse of array_filter())
- reverse()→ array_reverse()
- shuffle()→ shuffle()
- uasort()→ uasort()
- uksort()→ uksort()
- unique()→ array_unique()
- values()→ array_values()
1 - uses key & value of the array element in the callback function
Supported functions
- count()
- json_encode()
- serialize()