2017 © Pedro PelĂĄez
 

library silex-middleware

This package provides a StackPHP middleware that can be used to plug a Silex application

image

mouf/silex-middleware

This package provides a StackPHP middleware that can be used to plug a Silex application

  • Tuesday, May 12, 2015
  • by mouf
  • Repository
  • 15 Watchers
  • 11 Stars
  • 76 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Silex middleware for StackPHP

This package contains a StackPHP middleware that unables you to push a Silex application directly on the middleware stack. The Silex application will try to handle requests but instead of sending a 404 response if nothing is found, the next middleware on the stack will be called., (*1)

Installation

Through Composer as mouf/silex-middleware., (*2)

Usage

Simply use the SilexMiddleWare class in your middleware stack:, (*3)

use Mouf\StackPhp\SilexMiddleware;
use Silex\Application;
use Stack\Builder;

$app = ...

$silex = new Silex\Application();
$silex->get('/hello', function(Request $request) {
    return 'Hello World!';
});

$stack = (new Stack\Builder())
    ->push(SilexMiddleWare::class, $silex);

$app = $stack->resolve($app);

The Versions

12/05 2015

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/thecodingmachine/silex-middleware

This package provides a StackPHP middleware that can be used to plug a Silex application

  Sources   Download

MIT

The Requires

 

stack silex stackphp