dev-master
9999999-dev
LGPL v3
The Development Requires
1.0.0
1.0.0.0
LGPL v3
The Development Requires
Wallogit.com
2017 © Pedro Peláez
RAndom STRIngS generator., (*1)
Simply add a dependency on mpstyle/rastris to your project's composer.json file if you use Composer to manage the dependencies of your project. Here is a minimal example of a composer.json file that just defines a development-time dependency on MpStyle Rastris:, (*3)
{
"require-dev": {
"mpstyle/rastris": "1.*.*"
}
}
or using console:, (*4)
composer require "mpstyle/rastris=1.*.*"
Generate a random string (the length is 10 characters) using this subset of chars |!"£$%&/()=?^+§°ç@-.,;_<>€[]{}abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ, (*5)
$generator = new RandomCharsGenerator(); $str = $generator->get(10);
Generate a random string (the length is 10 characters) using this subset of chars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ, (*6)
$generator = new RandomCharsGenerator(); $str = $generator->getAlphas(10);
Generate a random string (the length is 10 characters) using this subset of chars ABCDEFGHIJKLMNOPQRSTUVWXYZ, (*7)
$generator = new RandomCharsGenerator(); $str = $generator->getUpperAlphas(10);
Generate a random string (the length is 10 characters) using this subset of chars abcdefghijklmnopqrstuvwxyz, (*8)
$generator = new RandomCharsGenerator(); $str = $generator->getLowerAlphas(10);
Generate a random string (the length is 10 characters) using this subset of chars 1234567890, (*9)
$generator = new RandomCharsGenerator(); $str = $generator->getDigits(10);
In the root of the project run:, (*10)
composer test
LGPL v3
LGPL v3