Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 95 | All time: 9,868 This week: 455 |
Version | License | PHP version | Categories | |||
dframe-token 1.0.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 (3) |
File | Role | Description |
---|---|---|
composer.json | Data | Auxiliary data |
README.md | Doc. | Documentation |
Token.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
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.