2017 © Pedro Peláez
 

library middleware

Psr-15 middleware stack and queue

image

ellipse/middleware

Psr-15 middleware stack and queue

  • Monday, March 19, 2018
  • by pmall
  • Repository
  • 1 Watchers
  • 0 Stars
  • 216 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Middleware stack and queue

This package provides classes for Psr-15 middleware stack and queue, allowing to group multiple middleware together., (*1)

Require php >= 7.0, (*2)

Installation composer require ellipse/middleware, (*3)

Run tests ./vendor/bin/kahlan, (*4)

Middleware stack

This package provides an Ellipse\Middleware\MiddlewareStack class allowing create a middleware processing the request using many middleware in LIFO order., (*5)

<?php

namespace App;

use Ellipse\Middleware\MiddlewareStack;

// Create a middleware stack. (LIFO order)
$stack = new MiddlewareStack([new SomeMiddleware2, new SomeMiddleware1]);

// The request goes through middleware1, middleware2, then hit the request handler.
$response = $stack->process($request, new SomeHandler);

Middleware queue

This package provides an Ellipse\Middleware\MiddlewareQueue class allowing create a middleware processing the request using many middleware in FIFO order., (*6)

<?php

namespace App;

use Ellipse\Middleware\MiddlewareQueue;

// Create a middleware queue. (FIFO order)
$queue = new MiddlewareQueue([new SomeMiddleware1, new SomeMiddleware2]);

// The request goes through middleware1, middleware2, then hit the request handler.
$response = $queue->process($request, new SomeHandler);

The Versions

19/03 2018

dev-master

9999999-dev https://github.com/ellipsephp/middleware

Psr-15 middleware stack and queue

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pierre Mallinjoud

middleware resolver psr-15 request-handler

19/03 2018
12/03 2018

1.0.0

1.0.0.0 https://github.com/ellipsephp/middleware

Psr-15 middleware stack and queue

  Sources   Download

MIT

The Requires

 

The Development Requires

by Pierre Mallinjoud

middleware psr-15 request-handler