PHP code example of mpstyle / rastris

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

    

mpstyle / rastris example snippets


$generator = new RandomCharsGenerator();
$str = $generator->get(10);

$generator = new RandomCharsGenerator();
$str = $generator->getAlphas(10);

$generator = new RandomCharsGenerator();
$str = $generator->getUpperAlphas(10);

$generator = new RandomCharsGenerator();
$str = $generator->getLowerAlphas(10);

$generator = new RandomCharsGenerator();
$str = $generator->getDigits(10);