Download the PHP package hunts/stream.php without Composer
On this page you can find all versions of the php package hunts/stream.php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download hunts/stream.php
More information about hunts/stream.php
Files in hunts/stream.php
Download hunts/stream.php
More information about hunts/stream.php
Files in hunts/stream.php
Vendor hunts
Package stream.php
Short Description PHP implementation of collection query API similar to Java Stream API and .NET Linq
License MIT
Package stream.php
Short Description PHP implementation of collection query API similar to Java Stream API and .NET Linq
License MIT
Please rate this library. Is it a good library?
Informations about the package stream.php
Stream.php
The stream.php library is a PHP implementation of collection query API similar to Java Stream API and .NET Linq.
Table of Contents
- Installation
- Composer
- Classes and methods
- Usage
- Query API
Installation
Composer
Classes and methods
Usage
- Class Stream
- Class NumberStream
- Global Functions
Class Stream
Description: Instantiate a new Stream object
Example
use Hunts\Stream;
...
$stream = Stream::from([$user1, $user2, $user3]);
Class NumberStream
Description: Instantiate a new NumberStream object
Example
use Hunts\Stream;
...
$stream = NumberStream::from([1, 2, 3]);
Global functions
Description: Instantiate a new Stream object via global function: stream() or number_stream()
Example
$stream = stream([$user1, $user2, $user3]);
$stream = number_stream([1, 2, 3]);
Query API
- Filter - Filter elements that match the give predicate
- First - Return the first element of matched items
- Last - Return the last element of matched items
- Max
- Min
- Any
- All
- Each
- Map
- MapToNumber
- Reduce
- Distinct
- Sort
- SortByDescending
- Skip
- Limit
- Count
- ToArray
All versions of stream.php with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2.0
The package hunts/stream.php contains the following files
Loading the files please wait ....