block / block-csrf
[Protect your web site from CSRF attack]
v0.1.2
2015-02-10 06:41 UTC
Requires
- php: >=5.3.3
This package is not auto-updated.
Last update: 2025-02-15 19:04:58 UTC
README
protect your web site from csrf attack
Install
via composer
{
"require": {
"block/block-csrf": "0.1.*"
}
}
How
// create instance $blockCSRF = \Block\BlockCSRF::getInstance(); // generate token $blockCSRF->generate(); /* * check token * @return true OR false */ $blockCSRF->check($token);
Test
phpunit .
License
MIT