2017 © Pedro Peláez
 

library pipeline

Pipeline library with named steps and ordering.

image

solution10/pipeline

Pipeline library with named steps and ordering.

  • Sunday, May 7, 2017
  • by alexgisby
  • Repository
  • 0 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Solution10\Pipeline

A simple pipeline library that allows you to string together chains of tasks to perform in a given order., (*1)

This library, unlike others, allows you to name and insert steps in different orders to when they're defined., (*2)

Build Status Latest Stable Version Total Downloads License, (*3)

Usage

The most simple pipeline is just a sequence of steps where the output is handed to the next step and eventually returned out of the bottom:, (*4)

<?php

use Solution10\Pipeline\Pipeline;

$w = (new Pipeline())
    ->step('double', function ($input) {
        return $input * 2;
    })
    ->step('add-one', function ($input) {
        return $input + 1;
    })
    ->step('stringify', function ($input) {
        return 'Result: '.$input;
    })
;

$result = $w->run(2);
// $result is "Result: 5"

Each step is given a name as the first parameter and a callable as it's second., (*5)

Pipeline::run() is then called with the input to generate the output., (*6)

There are various types of run() you can do, as well as variety of ways of defining steps, see the Userguide for more details., (*7)

PHP Requirements

  • PHP >= 5.6 || HHVM >= 3.3

Author

Alex Gisby: GitHub, Twitter, (*8)

License

MIT, (*9)

The Versions

07/05 2017

dev-master

9999999-dev

Pipeline library with named steps and ordering.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Alex Gisby

pipeline workflow

07/05 2017

v1.2.0

1.2.0.0

Pipeline library with named steps and ordering.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Alex Gisby

pipeline workflow

05/05 2017

v1.1.0

1.1.0.0

Pipeline library with named steps and ordering.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Alex Gisby

pipeline workflow

01/05 2017

v1.0.0

1.0.0.0

Pipeline library with named steps and ordering.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Alex Gisby

pipeline workflow