ww0rm/php-arrays

Implements Java8 StreamAPI in PHP7

Maintainers

Package info

github.com/ww0rm/php-arrays

pkg:composer/ww0rm/php-arrays

Statistics

Installs: 22

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

dev-master 2026-02-26 06:19 UTC

This package is not auto-updated.

Last update: 2026-03-12 06:32:24 UTC


README

Implements Java8 StreamAPI in PHP7

Required PHP 7+

Install

composer require ww0rm/php-arrays

Documentation

View

Example

$array = [0, 1, 2, 3, 4, 5];
$result = Arrays::of($array)->filter(function ($i) {
    return $i % 2 == 0;
})->collect(); // [0, 2, 4]