Skip to content
No description, website, or topics provided.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/Middleware
.gitignore
LICENSE
README.md
composer.json

README.md

PSR-15 Middleware support for CakePHP

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

You can’t perform that action at this time.