Download the PHP package bzrk/php-stream without Composer
On this page you can find all versions of the php package bzrk/php-stream. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package php-stream
PHP Stream
A library to handle Collections like in Java
Stream Class
- public count(): int
- public map(Closure $call): Stream
- public flatMap(Closure $call): Stream
- public filter(Closure $call): Stream
- public notNull(): Stream
- public notEmpty(): Stream
- public each(Closure $call): void
- public toList(bool $keepKeys = false): array
- public toMap(Closure $key, Closure $value): array
- public first(): mixed
- public limit(int $size): Stream
- public order(Comparator $comparator): Stream
- public run(): Stream
- public skip(int $count): Stream
- public implode(string $separator = ','): string
- public join(string $separator = ','): string --> alias for implode
- public batch(int $count): Stream
- public associateBy(Closure $call): array
- public collect(string $class): Collection
- public toGenerator(Closure $call = null, $default = null): Generator
- public callBack(Closure $call): Stream
Streams Class
- public static of(array|Iterator|File|CsvFile $data): Stream
- public static range(int $start, int $inclusiveEnd): Stream
- public static split(string $pattern, string $source): Stream
Examples
Create a Stream from a Typed Collection
more Examples in the testsuite.
Running Test
or
All versions of php-stream with dependencies
PHP Build Version
Package Version
Requires
php Version
>= 8.2
The package bzrk/php-stream contains the following files
Loading the files please wait ....