dev-master
9999999-devCSRF handler for Cradle
MIT
The Requires
The Development Requires
by Christian Blanquera
cradle cradlephp
CSRF handler for Cradle
Deprecation Notice: This project has been moved to https://github.com/CradlePHP/cradle-csrf, (*1)
CSRF Handling for Cradle, (*2)
You should be using CradlePHP currently at dev-master
. See
https://cradlephp.github.io/ for more information., (*3)
composer require cblanquera/cradle-csrf
Then in /bootstrap.php
, add, (*4)
->register('cblanquera/cradle-csrf')
Once the database is installed open up /public/index.php
and add the following., (*5)
<?php use Cradle\Framework\Flow; return cradle() //add routes here ->get('/csrf/test', 'CSRF Page') ->post('/csrf/test', 'CSRF Process') //add flows here //renders a table display ->flow('CSRF Page', Flow::csrf()->load, Flow::csrf()->render, 'TODO: form page' ) ->flow('CSRF Process', Flow::csrf()->check, array( Flow::csrf()->yes, 'TODO: process' ), array( Flow::csrf()->no, 'TODO: deny' ) );
CSRF handler for Cradle
MIT
cradle cradlephp