PHP code example of techtailor / rpg

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

    

techtailor / rpg example snippets


'providers' => [
    // ...
    TechTailor\RPG\RPGServiceProvider::class,
];

'aliases' => [
    // ...
    'RPG' => TechTailor\RPG\Facade\RPG::class,
];

use TechTailor\RPG\Facade\RPG;

 RPG::Generate($character, $size, $dashes, $encrypt);

 RPG::Preset($preset); //Where $preset value can be 1, 2, 3 or 4.
 or
 RPG::Preset($preset,1); // For encrypting the result before returning it.

 return RPG::Decrypt($encrypted);