kaz29/cakephp-psr15

PSR-15 Middleware support for CakePHP

Installs: 867

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:cakephp-plugin

dev-master 2019-05-05 07:18 UTC

This package is auto-updated.

Last update: 2024-11-05 19:22:19 UTC


README

Installation

Install the latest version with

$ composer require kaz29/cakephp-psr15:dev-master

Basic Usage

Application.php

Add your PSR-15 middleware referring to the following sample.

...
        $middlewareQueue
            // Catch any exceptions in the lower layers,
            // and make an error page/response
            ->add(new ErrorHandlerMiddleware(null, Configure::read('Error')))
            ->add(new PsrMiddleware(new YourPsr15Middleware()))
....

Author

Kazuhiro Watanabe - cyo [at] mac.com - https://twitter.com/kaz_29

License

Phai is licensed under the MIT License - see the LICENSE file for details