PHP code example of wandu-ar / randomist

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

    

wandu-ar / randomist example snippets


use Wandu\Utils\Randomist;

$randomist = new Randomist();


$secure_password =  $randomist
                        ->set_lenght(12)
                        ->                     ->

$multiple_passwords =  $randomist
                        ->reset()
                        ->set_lenght(8)
                        ->

echo "2- Multiple simple passwords:\n".implode("\n", $multiple_passwords)."\n\n";

$random_hash =  $randomist
                    ->reset()
                    ->set_lenght(50, 80)
                    ->

echo "3- Random hash: {$random_hash}\n\n";  

$random_hash_uri_safe =  $randomist
                            ->reset()
                            ->set_lenght(30, 40)
                            ->only_safe()
                            ->echo "4- Random hash URI safe: {$random_hash_uri_safe}\n\n";

$captcha = $randomist
                ->reset()
                ->set_lenght(5)
                ->simple captcha: {$captcha}\n\n";

$code = $randomist
            ->reset()
            ->set_lenght(6)
            ->