2017 © Pedro Peláez
 

library rastris

image

mpstyle/rastris

  • Thursday, December 29, 2016
  • by MpStyle
  • Repository
  • 0 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Rastris

RAndom STRIngS generator., (*1)

Build Status, (*2)

How to install

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.*.*"

How to use

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);

Run tests

In the root of the project run:, (*10)

composer test

The Versions

29/12 2016

dev-master

9999999-dev

  Sources   Download

LGPL v3

The Development Requires

19/12 2016

1.0.0

1.0.0.0

  Sources   Download

LGPL v3

The Development Requires