PHPackages                             pepegar/streams-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. pepegar/streams-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pepegar/streams-php
===================

A port of the Streams library for Java8. Let's make PHP cooler.

1.1(12y ago)96122[1 issues](https://github.com/pepegar/streams-php/issues)MITPHP

Since Feb 20Pushed 12y agoCompare

[ Source](https://github.com/pepegar/streams-php)[ Packagist](https://packagist.org/packages/pepegar/streams-php)[ RSS](/packages/pepegar-streams-php/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Streams
=======

[](#streams)

[![Build Status](https://camo.githubusercontent.com/86b8a27a8ecebdb372f96ee39399b2ffa5a184ebfc454f7607a854e9b38f1fc2/68747470733a2f2f7472617669732d63692e6f72672f706570656761722f73747265616d732d7068702e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/pepegar/streams-php)[![License](https://camo.githubusercontent.com/e6b9a160a7a6c713e5eaa14d25cc76f53d5881d6bc3bd89471b935412bfdb815/68747470733a2f2f706f7365722e707567782e6f72672f706570656761722f73747265616d732d7068702f6c6963656e73652e706e67)](https://packagist.org/packages/pepegar/streams-php)[![SensioLabsInsight](https://camo.githubusercontent.com/3e51d3d75015685f7ab9c4b3c11b1a506a763ef5b4ad54999a472dfc4f950aeb/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f62343730373037392d636434372d346439312d623063322d3932653862393262356632312f6269672e706e67)](https://insight.sensiolabs.com/projects/b4707079-cd47-4d91-b0c2-92e8b92b5f21)

Streams is a port of the Streams library for PHP. It makes working with collections super pleasant.

Installation
------------

[](#installation)

Just add the following to your `composer.json` file:

```
"pepegar/streams-php": "dev-master"
```

Usage
-----

[](#usage)

An example with the Yii ActiveRecord lib:

```
