PHP code example of timoye / php-reference-generator

1. Go to this page and download the library: Download timoye/php-reference-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/ */

    

timoye / php-reference-generator example snippets




imoye\ReferenceGenerator;

$token=ReferenceGenerator::getHashedToken();

#default length is 25

string(25) "0VE5EVWFXegzllH9mymWeUyHg"

string(25) "ieKIj4fkXXM2S2d2ZlsfN51Wp"

string(25) "NLN92yVlQ2K5c7tb0Ybd0iMDJ"


#You can define your reference length

$token=ReferenceGenerator::getHashedToken(7);

string(7) "FbKnCn7"

string(7) "Qkspgrd"

string(7) "riflXQN"


composer