Download the PHP package sciencehook/csrf-xsrf without Composer
On this page you can find all versions of the php package sciencehook/csrf-xsrf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sciencehook/csrf-xsrf
More information about sciencehook/csrf-xsrf
Files in sciencehook/csrf-xsrf
Informations about the package csrf-xsrf
CSRF/ XSRF Security mini library for PHP applications. Embed and verify security tokens in forms without much hassle.
Table of Contents
- Installation
- Usage Examples
- Contribution
- License
Installation
Requirements:
PHP
This library is developed and tested on PHP 7.2. We do not know its backward compatibility. So, please test it before using it for PHP version less than 7.2.
Steps:
First, get Composer, if you don't already have it.
Next, run the following command in your terminal in PROJECT's directory:
composer require sciencehook/csrf-xsrf
___
Usage Examples
You can find the working examples in examples folder.
input_form.php is input form containing CSRF token and form_validation.php validates the token and proceeds accordingly.
___Contribution
Please raise issues in case of any bugs or problems. To contribute, please create pull requests.
___