This is a skeleton to create packages implementing PSR-15 using composer:
composer create-project middlewares/skeleton my-middleware
Description of the middleware
- PHP >= 7.2
- A PSR-7 http library
- A PSR-15 middleware dispatcher
This package is installable and autoloadable via Composer as middlewares/skeleton.
composer require middlewares/skeleton
$dispatcher = new Dispatcher([
(new Middlewares\Skeleton())
->option1()
->option2($value)
]);
$response = $dispatcher->dispatch(new ServerRequest());
Option description
Option description
Please see CHANGELOG for more information about recent changes and CONTRIBUTING for contributing details.
The MIT License (MIT). Please see LICENSE for more information.