🔆 A Minimal CSRF(Cross Site Request Forgery) Protection Package 🌙
A simple and elegant open-source Minimal CSRF(Cross Site Request Forgery) Protection Package written in the PHP language.
A simple and elegant open-source Minimal CSRF(Cross Site Request Forgery) Protection Package written in the PHP language.
Website | Docs | Contribution
with ❤︎ by Sarfaraz
Stable Version Release
PHP 5.6.0 and later.
You can install the bindings via Composer,Run the following command:
composer require avatarphp/glide-csrf
To use the bindings, use Composer's autoload:
require_once('vendor/autoload.php');
If you do not wish to use Composer, you can download the latest release. Then, to use the bindings, include the init.php file.
require_once('/path/to/glide-csrf/src/glide.php');
Simple usage looks like:
$csrf=new Glide();
echo $csrf->token();
Verify the token
if(Glide::validate($key)){
//next phase
};
Please read the documentation
Please read the Contributing Guide
Special thanks to @jocs
MIT.