PHP Classes

File: src/Token/

Recommend this page to a friend!
  Classes of Slawomir Kaleta  >  Dframe Framework  >  src/Token/  >  Download  
File: src/Token/
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Dframe Framework
Modular MVC based PHP Web framework
Author: By
Last change: Update of src/Token/
Date: 1 year ago
Size: 1,286 bytes


Class file image Download

Dframe/Token - Component

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

php framework dframe logo


$ 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

For more information send a message to info at phpclasses dot org.