{"repo":"sanmai/pipeline","free":true,"listed":false,"github":"https://github.com/sanmai/pipeline","clone":"git clone https://github.com/sanmai/pipeline.git","description":"Build streaming pipelines in PHP. The missing pipe operator. General-purpose collections pipeline. Since 2017.","language":"PHP","stars":75,"topics":["php-library","collections","pipeline","functional-programming","chain","stream-processing"],"license":"Apache-2.0","category":"data-pipelines","readme_excerpt":"sanmai/pipeline provides a fluent, memory-efficient way to process iterable data in PHP. It uses lazy evaluation with generators, allowing you to build complex data processing pipelines that are easy to read and write. Inspired by the pipe operator ( ) in shells, it lets you chain operations like map , filter , reduce , zip , and more. Because it processes items one by one and only when needed, it's highly effective for large or even infinite collections without exhausting memory. The library is rigorously tested and robust. Pipeline neither defines nor throws any exceptions. Install The latest version requires PHP 8.2 or above. Some earlier versions work under PHP 5.6 and above, but they are not as feature-complete. Documentation Read the full documentation The documentation includes: - Quick start guide to get up and running - Full Pipeline API reference for a deep dive - Cookbook with practical recipes and patterns - Best practices with tips for effective usage Use API entry points All entry points always return an instance of the pipeline. Method Details Use with ----------- ----------------------------- ----------- map() Takes an optional initial callback, where it must not require any arguments. Other than that, works just like an instance method below. use function Pipeline\\map; take() Takes any iterables, including arrays, joining them together in succession. use function Pipeline\\take; fromArray() Takes an array, initializes a pipeline with it. use function Pipeline\\","default_branch":null,"files":null,"tree":[],"storefront":"/r/sanmai","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sanmai/pipeline/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}