2017 © Pedro Peláez
 

library duskphp-middleware

A middleware 's collection

image

hovensoft/duskphp-middleware

A middleware 's collection

  • Sunday, August 27, 2017
  • by Dederobert
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

DuskPHP - Middleware

Build Status Coverage Status, (*1)

Provide middleware: - a CSRF authenticator which protect against CSRF attack with a token authentication, (*2)

## How to use, (*3)

  •  CSRF Authenticator

    How to use it ?, (*4)

    This middleware check every POST, PUT and DELETE request for a CSRF token., (*5)

    $middleware = new CsrfMiddleware($_SESSION, 200);
    $dispatcher->pipe($middleware);
    

    Input, (*6)

    The middleware check if the string <:csrf_token_field:> is in response and replace it with the authenticator's token., (*7)

    <form action="" method="post">
    ...
    <:csrf_token_field:>
    </form>
    

    LICENSE

    DuskPHP - A simple PHP framework build with middleware pattern, (*8)

    Copyright (C) 2017 HovenSoft, (*9)

    This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version, (*10)

    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details., (*11)

    You should have received a copy of the GNU General Public License along with this program. If not, see www.gnu.org/licenses., (*12)

The Versions

27/08 2017

dev-master

9999999-dev

A middleware 's collection

  Sources   Download

GNU General Public License v3.0

The Requires

 

The Development Requires

by hovensoft

26/08 2017

v1.0.0

1.0.0.0

A middleware 's collection

  Sources   Download

GNU General Public License v3.0

The Requires

 

The Development Requires

by hovensoft