Skip to content
arter.dev

ZenPipe PHP

A simple and flexible PHP pipeline library for elegant data transformation and processing

Published

ZenPipe is a modern PHP library that brings elegance and simplicity to data processing pipelines. Built with developer experience in mind, it enables you to chain operations together in a clean, functional style to transform, validate, or process data.

Key Features

Real-World Applications

ZenPipe excels in various scenarios:

Example Usage

Here's a simple example that applies a discount and tax calculation:

$calculator = zenpipe()
   ->pipe(fn($price, $next) => $next($price * 0.8)) // 20% discount
   ->pipe(fn($price, $next) => $next($price * 1.1)); // add 10% tax

$calculator(100); // $88 (100 -> 80 -> 88)

ZenPipe's power lies in its simplicity and flexibility, making it an invaluable tool for developers who value clean, maintainable code and efficient data processing workflows.

GitHub