PHPackages                             keven/pipe - 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. keven/pipe

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

keven/pipe
==========

Data processing pipe

0.0.3(2y ago)16MITPHP

Since Jul 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/kevengodet/pipe)[ Packagist](https://packagist.org/packages/keven/pipe)[ Docs](https://github.com/kevengodet/pipe)[ RSS](/packages/keven-pipe/feed)WikiDiscussions main Synced 4d ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Usage
=====

[](#usage)

A collection processing pipe. Methods are chainable.

Each step of the pipe is executed only if required: if you filter out 90% of the items at one step, then further steps will only process the remaining 10%.

You should always use `yield` in your callables to avoid having the whole collection in memory.

You can test the example below by running `php lab/example.php` from the root of the component.

```
