Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (3) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2020-09-12 (Yesterday) | Not yet rated by the users | Total: 3 This week: 3 | All time: 10,064 This week: 122 |
Version | License | PHP version | Categories | |||
dframe-token 1.0 | The PHP License | 7 | PHP 5, Security |
Description | Author | ||||||||
This package can generate tokens to protect against CSRF attacks. |
|
$ 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
Files |
File | Role | Description |
---|---|---|
composer.json | Data | Auxiliary data |
README.md | Doc. | Documentation |
Token.php | Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.