avatarphp/glide-csrf

A Minimal CSRF(Cross Site Request Forgery) Protection Packages

v1.0.0 2020-10-24 12:32 UTC

This package is auto-updated.

Last update: 2024-05-30 00:59:51 UTC


README

Glide CSRF

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 LICENSE issues

Website | Docs | Contribution

with ❤︎ by Sarfaraz

Notice

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.