Generate and Validate CSRF Tokens to make forms Secure.
Use the package manager
composer require academy01/csrftoken
require "vendor/autoload.php";
use Academy01\Csrftoken;;
CsrfToken::generate();
CsrfToken::validate($token);
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.