PHP code example of xixaoly / randomizer

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

    

xixaoly / randomizer example snippets



use Randomizer\Randomizer;

$randomizer = new Randomizer;
$job = $randomizer->createJobFromFile($path);

try {
	$randomizer->install($job);
	$randomizer->run($job);
	$randomizer->uninstall($job);
} catch (Exception $e) {
	$randomizer->uninstall($job);
}