avatarphp / glide-csrf
A Minimal CSRF(Cross Site Request Forgery) Protection Packages
v1.0.0
2020-10-24 12:32 UTC
Requires (Dev)
- phpunit/phpunit: ^9.3
This package is auto-updated.
Last update: 2025-04-29 01:42:02 UTC
README
Glide CSRF
🔆 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.
Website | Docs | Contribution
with ❤︎ by SarfarazNotice
Stable Version Release
Requirements
PHP 5.6.0 and later.
Composer
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');
Manual Installation
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');
Getting Started
Simple usage looks like:
$csrf=new Glide(); echo $csrf->token();
Verify the token
if(Glide::validate($key)){ //next phase };
Please read the documentation
Contribution
Please read the Contributing Guide
Contributors
Special thanks to @jocs
License
MIT.