2017 © Pedro Peláez
 

library stack-runner

Simple stack-runner for PSR-15 compatible middleware

image

ideationnet/stack-runner

Simple stack-runner for PSR-15 compatible middleware

  • Tuesday, November 14, 2017
  • by darrenmothersele
  • Repository
  • 1 Watchers
  • 2 Stars
  • 73 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 1 % Grown

The README.md

Stack Runner

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score Total Downloads StyleCI, (*1)

A simple PSR-15 compatible middleware dispatcher., (*2)

v3 breaking changes: updated to use "http-interop/http-middleware" v0.5 where Delegate has been replaced with ResponseHandler., (*3)

Requirements

Install

Via Composer, (*4)

$ composer require ideationnet/stack-runner

Usage

To instantiate directly, provide the stack of middleware, the invoker to use, and the response factory:, (*5)

$runner = new IdNet\StackRunner($middleware, $invoker, $factory);
$response = $runner->dispatch($request);

Although you will probably use with your preferred DI Container rather than instantiating directly:, (*6)

$runner = $container->get(StackRunner::class);

Here's configuration for PHP-DI, which is preferred, as the container also doubles as a compatible Invoker:, (*7)

return [
    StackRunner::class => object()
        ->constructorParameter('stack', get('middleware')),
];

Security

If you discover any security related issues, please email darren@darrenmothersele.com instead of using the issue tracker., (*8)

Credits

License

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

The Versions

14/11 2017

dev-master

9999999-dev https://github.com/ideationnet/stack-runner

Simple stack-runner for PSR-15 compatible middleware

  Sources   Download

MIT

The Requires

 

The Development Requires

ideationnet stack-runner

14/11 2017
23/10 2017

dev-analysis-q2morr

dev-analysis-q2morr https://github.com/ideationnet/stack-runner

Simple stack-runner for PSR-15 compatible middleware

  Sources   Download

MIT

The Requires

 

The Development Requires

ideationnet stack-runner

23/10 2017

3.0

3.0.0.0 https://github.com/ideationnet/stack-runner

Simple stack-runner for PSR-15 compatible middleware

  Sources   Download

MIT

The Requires

 

ideationnet stack-runner

23/12 2016

2.0

2.0.0.0 https://github.com/ideationnet/stack-runner

Simple stack-runner for PSR-15 compatible middleware

  Sources   Download

MIT

The Requires

 

ideationnet stack-runner

29/11 2016

1.0.0

1.0.0.0 https://github.com/ideationnet/stack-runner

Simple stack-runner for PSR-15 compatible middleware

  Sources   Download

MIT

The Requires

 

ideationnet stack-runner