File: src/Token/README.md

Recommend this page to a friend!
  Classes of Slawomir Kaleta  >  Dframe Framework  >  src/Token/README.md  >  Download  
File: src/Token/README.md
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/README.md
Date: 10 days ago
Size: 1,286 bytes
 

 

Contents

Class file image Download

Dframe/Token - Component

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

php framework dframe logo

Composer

$ composer require dframe/token

Standalone


$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

License

Open-sourced software licensed under the MIT license


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