Skip to content

A Minimal CSRF(Cross Site Request Forgery) Protection Package

License

Notifications You must be signed in to change notification settings

AvatarPHP/Glide-CSRF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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.

About

A Minimal CSRF(Cross Site Request Forgery) Protection Package

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages