koharakazuya / laravel-psr15-middleware
Adoptor to use PSR-15 middlewares in Laravel
v0.1.0
2019-01-26 07:07 UTC
Requires
- php: ^7.1
- ext-json: *
- psr/http-server-middleware: ^1.0.1
- symfony/psr-http-message-bridge: ^1.1
- zendframework/zend-diactoros: ^1.8
Requires (Dev)
- illuminate/http: ^5.7
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2025-03-26 21:24:55 UTC
README
Adaptor to use PSR-15 middlewares in Laravel.
Installation
$ composer require koharakazuya/laravel-psr15-middleware
Usage
<?php use KoharaKazuya\LaravelPSR15Middleware\LaravelPSR15MiddlewareFactory; use Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory; use Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory; $middlewareFactory = new LaravelPSR15MiddlewareFactory( new DiactorosFactory(), new HttpFoundationFactory() ); $laravelMiddleware = $middlewareFactory->createMiddleware($psrMiddleware);