PHP code example of gsylvestre / php-token-generator

1. Go to this page and download the library: Download gsylvestre/php-token-generator library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

gsylvestre / php-token-generator example snippets


$generator = new \PHPTokenGenerator\TokenGenerator();
$token = $generator->generate(24); //RDTAwiMFSZiTs5y3Eqq7b9ud

$generator = new \PHPTokenGenerator\TokenGenerator();
$token = $generator->generate(); //MpWUMGLUeg6FQQr6CHi7S8n9tfapY2bc 

$generator = new \PHPTokenGenerator\TokenGenerator();
$token = $generator->generate(12, false); //9tIKdlfCSOo4