|Ratings|| ||Unique User Downloads|| ||Download Rankings|
|Not yet rated by the users||Total: 92 ||All time: 9,775 This week: 189|
This package can generate tokens to protect against CSRF attacks.
It can generate a token string that can be used in Web pages to avoid Cross-Site Request forgery attacks. The generated token strings can be stored using in different storage containers using a given driver class object.
The package can also retrieve a token from the storage container accessed with the driver object to verify if it is valid.
Dframe/Token - Component
$ composer require dframe/token
$driver = new \Dframe\Session\Session('sessionName');
* $driver Can be any class implements interface \Psr\SimpleCache\CacheInterface
$token = new \Dframe\Token\Token($driver);
$key = $token->generate('evidenceToken')->get('evidenceToken'); // Generate hash
$isValid = $token->isValid('evidenceToken', $key); // Return true/false
$has = $token->has('evidenceToken'); // Return true/false
Open-sourced software licensed under the MIT license
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.