middlewares/skeleton

A skeleton repository for PSR-15 middleware packages

v0.8.0 2019-12-03 22:07 UTC

This package is auto-updated.

Last update: 2020-05-03 22:57:03 UTC


README

This is a skeleton to create packages implementing PSR-15 using composer:

composer create-project middlewares/skeleton my-middleware

middlewares/skeleton

Latest Version on Packagist Software License Build Status Quality Score Total Downloads

Description of the middleware

Requirements

Installation

This package is installable and autoloadable via Composer as middlewares/skeleton.

composer require middlewares/skeleton

Example

$dispatcher = new Dispatcher([
    (new Middlewares\Skeleton())
        ->option1()
        ->option2($value)
]);

$response = $dispatcher->dispatch(new ServerRequest());

Usage

option1

Option description

option2

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.