2017 © Pedro Peláez
 

library pipeware

Pipelined PSR-15 middleware

image

dlundgren/pipeware

Pipelined PSR-15 middleware

  • Sunday, June 24, 2018
  • by dlundgren
  • Repository
  • 1 Watchers
  • 1 Stars
  • 10 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Pipeware library

Latest Version on Packagist ![Software License][ico-license] Total Downloads, (*1)

This is an example library for how to treat Middleware as a pipeline., (*2)

This uses the SyberIsle Pipeline as it's pipeline implementation., (*3)

Usage

$stack = new \Pipeware\Stack(
    new \Pipeware\Containerized($container), // any psr-11 compatible container
    new \Pipeware\Processor()
);

// append your responder
$stack->append(new Responder());

// append your error handler
$stack->append(new ErrorHandler());

// have the stack handle your request
$response = $stack->handle($request);

// do something with your response if needed

Change log

Please see CHANGELOG for more information what has changed., (*4)

Credits

Please see CONTRIBUTING for details., (*5)

License

The MIT License (MIT). Please see License File for more information., (*6)

The Versions