class Generator

Properties

protected $providers
protected $formatters
string $name
string $firstName
string $firstNameMale
string $firstNameFemale
string $lastName
string $title
string $titleMale
string $titleFemale
string $idNumber
string $citySuffix
string $cityPrefix
string $streetSuffix
string $buildingNumber
string $city
string $streetName
string $streetAddress
string $secondaryAddress
string $postcode
string $address
string $state
string $country
string $ean13
string $ean8
string $isbn13
string $isbn10
string $phoneNumber
string $e164PhoneNumber
string $catchPhrase
string $bs
string $company
string $companySuffix
string $jobTitle
string $creditCardType
string $creditCardNumber
DateTime $creditCardExpirationDate
string $creditCardExpirationDateString
array $creditCardDetails
string $bankAccountNumber
string $swiftBicNumber
string $vat
string $word
string|array $words
string $sentence
string|array $sentences
string $paragraph
string|array $paragraphs
string $text
string $email
string $safeEmail
string $freeEmail
string $companyEmail
string $freeEmailDomain
string $safeEmailDomain
string $userName
string $password
string $domainName
string $domainWord
string $tld
string $url
string $slug
string $ipv4
string $ipv6
string $localIpv4
string $macAddress
int $unixTime
DateTime $dateTime
DateTime $dateTimeAD
string $iso8601
DateTime $dateTimeThisCentury
DateTime $dateTimeThisDecade
DateTime $dateTimeThisYear
DateTime $dateTimeThisMonth
string $amPm
string $dayOfMonth
string $dayOfWeek
string $month
string $monthName
string $year
string $century
string $timezone
string $md5
string $sha1
string $sha256
string $locale
string $countryCode
string $countryISOAlpha3
string $languageCode
string $currencyCode
bool $boolean
int $randomDigit
int $randomDigitNot
int $randomDigitNotNull
string $randomLetter
string $randomAscii
string $macProcessor
string $linuxProcessor
string $userAgent
string $chrome
string $firefox
string $safari
string $opera
string $internetExplorer
string $windowsPlatformToken
string $macPlatformToken
string $linuxPlatformToken
string $uuid
string $mimeType
string $fileExtension
string $hexColor
string $safeHexColor
string $rgbColor
array $rgbColorAsArray
string $rgbCssColor
string $safeColorName
string $colorName

Methods

addProvider($provider)

No description

getProviders()

No description

seed($seed = null)

No description

format($formatter, $arguments = [])

No description

callable
getFormatter(string $formatter)

No description

string
parse(string $string)

Replaces tokens ('{{ tokenName }}') with the result from the token method call

mixed
__get(string $attribute)

No description

mixed
__call(string $method, array $attributes)

No description

__destruct()

No description

callFormatWithMatches($matches)

No description

string
name(string $gender = null)

No description

string
firstName(string $gender = null)

No description

string
title(string $gender = null)

No description

float
latitude(mixed $min, mixed $max)

No description

float
longitude(mixed $min, mixed $max)

No description

string
creditCardNumber(mixed $type, mixed $formatted, mixed $separator)

No description

string
iban(mixed $countryCode, mixed $prefix, mixed $length)

No description

string|array
words(mixed $nb, mixed $asText)

No description

string
word()

No description

string
sentence(mixed $nbWords, mixed $variableNbWords)

No description

string|array
sentences(mixed $nb, mixed $asText)

No description

string
paragraph(mixed $nbSentences, mixed $variableNbSentences)

No description

string|array
paragraphs(mixed $nb, mixed $asText)

No description

string
text(mixed $maxNbChars)

No description

string
realText(mixed $maxNbChars, mixed $indexSize)

No description

string
password(mixed $minLength, mixed $maxLength)

No description

string
slug(mixed $nbWords, mixed $variableNbWords)

No description

string
amPm(mixed $max)

No description

string
date(mixed $format, mixed $max)

No description

string
dayOfMonth(mixed $max)

No description

string
dayOfWeek(mixed $max)

No description

string
iso8601(mixed $max)

No description

string
month(mixed $max)

No description

string
monthName(mixed $max)

No description

string
time(mixed $format, mixed $max)

No description

int
unixTime(mixed $max)

No description

string
year(mixed $max)

No description

dateTime(mixed $max, mixed $timezone)

No description

dateTimeAd(mixed $max, mixed $timezone)

No description

dateTimeBetween(mixed $startDate, mixed $endDate, mixed $timezone)

No description

dateTimeInInterval(mixed $date, mixed $interval, mixed $timezone)

No description

dateTimeThisCentury(mixed $max, mixed $timezone)

No description

dateTimeThisDecade(mixed $max, mixed $timezone)

No description

dateTimeThisYear(mixed $max, mixed $timezone)

No description

dateTimeThisMonth(mixed $max, mixed $timezone)

No description

bool
boolean(mixed $chanceOfGettingTrue)

No description

int
randomNumber(mixed $nbDigits, mixed $strict)

No description

int|string|null
randomKey(array $array = [])

No description

int
numberBetween(mixed $min, mixed $max)

No description

float
randomFloat(mixed $nbMaxDecimals, mixed $min, mixed $max)

No description

mixed
randomElement(array $array = ['a', 'c'] $)

No description

array
randomElements(array $array = ['a', 'c'] $, $count, $allowDuplicates)

No description

array|string
shuffle(mixed $arg)

No description

array
shuffleArray(array $array = [])

No description

string
shuffleString(mixed $string, mixed $encoding)

No description

string
numerify(mixed $string)

No description

string
lexify(mixed $string)

No description

string
bothify(mixed $string)

No description

string
asciify(mixed $string)

No description

string
regexify(mixed $regex)

No description

string
toLower(mixed $string)

No description

string
toUpper(mixed $string)

No description

optional(mixed $weight, mixed $default)

No description

unique(mixed $reset, mixed $maxRetries)

No description

valid(mixed $validator, mixed $maxRetries)

No description

mixed
passthrough(mixed $passthrough)

No description

int
biasedNumberBetween(mixed $min, mixed $max, mixed $function)

No description

string
file(mixed $sourceDirectory, mixed $targetDirectory, mixed $fullPath)

No description

string
imageUrl(mixed $width, mixed $height, mixed $word, mixed $font_color, mixed $bg_color, mixed $font_size)

No description

string
image(mixed $dir, mixed $width, mixed $height, mixed $category, mixed $fullPath, mixed $randomize, mixed $word)

No description

string
randomHtml(mixed $maxDepth, mixed $maxWidth)

No description

Details

at line 210
addProvider($provider)

No description

Parameters

$provider

at line 215
getProviders()

No description

at line 220
seed($seed = null)

No description

Parameters

$seed

at line 235
format($formatter, $arguments = [])

No description

Parameters

$formatter
$arguments

at line 245
callable getFormatter(string $formatter)

No description

Parameters

string $formatter

Return Value

callable

at line 266
string parse(string $string)

Replaces tokens ('{{ tokenName }}') with the result from the token method call

Parameters

string $string

String that needs to bet parsed

Return Value

string

at line 276
mixed __get(string $attribute)

No description

Parameters

string $attribute

Return Value

mixed

at line 287
mixed __call(string $method, array $attributes)

No description

Parameters

string $method
array $attributes

Return Value

mixed

at line 292
__destruct()

No description

at line 297
protected callFormatWithMatches($matches)

No description

Parameters

$matches

at line 205
string name(string $gender = null)

No description

Parameters

string $gender

Return Value

string

at line 205
string firstName(string $gender = null)

No description

Parameters

string $gender

Return Value

string

at line 205
string title(string $gender = null)

No description

Parameters

string $gender

Return Value

string

at line 205
float latitude(mixed $min, mixed $max)

No description

Parameters

mixed $min
mixed $max

Return Value

float

at line 205
float longitude(mixed $min, mixed $max)

No description

Parameters

mixed $min
mixed $max

Return Value

float

at line 205
string creditCardNumber(mixed $type, mixed $formatted, mixed $separator)

No description

Parameters

mixed $type
mixed $formatted
mixed $separator

Return Value

string

at line 205
string iban(mixed $countryCode, mixed $prefix, mixed $length)

No description

Parameters

mixed $countryCode
mixed $prefix
mixed $length

Return Value

string

at line 205
string|array words(mixed $nb, mixed $asText)

No description

Parameters

mixed $nb
mixed $asText

Return Value

string|array

at line 205
string word()

No description

Return Value

string

at line 205
string sentence(mixed $nbWords, mixed $variableNbWords)

No description

Parameters

mixed $nbWords
mixed $variableNbWords

Return Value

string

at line 205
string|array sentences(mixed $nb, mixed $asText)

No description

Parameters

mixed $nb
mixed $asText

Return Value

string|array

at line 205
string paragraph(mixed $nbSentences, mixed $variableNbSentences)

No description

Parameters

mixed $nbSentences
mixed $variableNbSentences

Return Value

string

at line 205
string|array paragraphs(mixed $nb, mixed $asText)

No description

Parameters

mixed $nb
mixed $asText

Return Value

string|array

at line 205
string text(mixed $maxNbChars)

No description

Parameters

mixed $maxNbChars

Return Value

string

at line 205
string realText(mixed $maxNbChars, mixed $indexSize)

No description

Parameters

mixed $maxNbChars
mixed $indexSize

Return Value

string

at line 205
string password(mixed $minLength, mixed $maxLength)

No description

Parameters

mixed $minLength
mixed $maxLength

Return Value

string

at line 205
string slug(mixed $nbWords, mixed $variableNbWords)

No description

Parameters

mixed $nbWords
mixed $variableNbWords

Return Value

string

at line 205
string amPm(mixed $max)

No description

Parameters

mixed $max

Return Value

string

at line 205
string date(mixed $format, mixed $max)

No description

Parameters

mixed $format
mixed $max

Return Value

string

at line 205
string dayOfMonth(mixed $max)

No description

Parameters

mixed $max

Return Value

string

at line 205
string dayOfWeek(mixed $max)

No description

Parameters

mixed $max

Return Value

string

at line 205
string iso8601(mixed $max)

No description

Parameters

mixed $max

Return Value

string

at line 205
string month(mixed $max)

No description

Parameters

mixed $max

Return Value

string

at line 205
string monthName(mixed $max)

No description

Parameters

mixed $max

Return Value

string

at line 205
string time(mixed $format, mixed $max)

No description

Parameters

mixed $format
mixed $max

Return Value

string

at line 205
int unixTime(mixed $max)

No description

Parameters

mixed $max

Return Value

int

at line 205
string year(mixed $max)

No description

Parameters

mixed $max

Return Value

string

at line 205
DateTime dateTime(mixed $max, mixed $timezone)

No description

Parameters

mixed $max
mixed $timezone

Return Value

DateTime

at line 205
DateTime dateTimeAd(mixed $max, mixed $timezone)

No description

Parameters

mixed $max
mixed $timezone

Return Value

DateTime

at line 205
DateTime dateTimeBetween(mixed $startDate, mixed $endDate, mixed $timezone)

No description

Parameters

mixed $startDate
mixed $endDate
mixed $timezone

Return Value

DateTime

at line 205
DateTime dateTimeInInterval(mixed $date, mixed $interval, mixed $timezone)

No description

Parameters

mixed $date
mixed $interval
mixed $timezone

Return Value

DateTime

at line 205
DateTime dateTimeThisCentury(mixed $max, mixed $timezone)

No description

Parameters

mixed $max
mixed $timezone

Return Value

DateTime

at line 205
DateTime dateTimeThisDecade(mixed $max, mixed $timezone)

No description

Parameters

mixed $max
mixed $timezone

Return Value

DateTime

at line 205
DateTime dateTimeThisYear(mixed $max, mixed $timezone)

No description

Parameters

mixed $max
mixed $timezone

Return Value

DateTime

at line 205
DateTime dateTimeThisMonth(mixed $max, mixed $timezone)

No description

Parameters

mixed $max
mixed $timezone

Return Value

DateTime

at line 205
bool boolean(mixed $chanceOfGettingTrue)

No description

Parameters

mixed $chanceOfGettingTrue

Return Value

bool

at line 205
int randomNumber(mixed $nbDigits, mixed $strict)

No description

Parameters

mixed $nbDigits
mixed $strict

Return Value

int

at line 205
int|string|null randomKey(array $array = [])

No description

Parameters

array $array

Return Value

int|string|null

at line 205
int numberBetween(mixed $min, mixed $max)

No description

Parameters

mixed $min
mixed $max

Return Value

int

at line 205
float randomFloat(mixed $nbMaxDecimals, mixed $min, mixed $max)

No description

Parameters

mixed $nbMaxDecimals
mixed $min
mixed $max

Return Value

float

at line 205
mixed randomElement(array $array = ['a', 'c'] $)

No description

Parameters

array $array
'c'] $

Return Value

mixed

at line 205
array randomElements(array $array = ['a', 'c'] $, $count, $allowDuplicates)

No description

Parameters

array $array
'c'] $
$count
$allowDuplicates

Return Value

array

at line 205
array|string shuffle(mixed $arg)

No description

Parameters

mixed $arg

Return Value

array|string

at line 205
array shuffleArray(array $array = [])

No description

Parameters

array $array

Return Value

array

at line 205
string shuffleString(mixed $string, mixed $encoding)

No description

Parameters

mixed $string
mixed $encoding

Return Value

string

at line 205
string numerify(mixed $string)

No description

Parameters

mixed $string

Return Value

string

at line 205
string lexify(mixed $string)

No description

Parameters

mixed $string

Return Value

string

at line 205
string bothify(mixed $string)

No description

Parameters

mixed $string

Return Value

string

at line 205
string asciify(mixed $string)

No description

Parameters

mixed $string

Return Value

string

at line 205
string regexify(mixed $regex)

No description

Parameters

mixed $regex

Return Value

string

at line 205
string toLower(mixed $string)

No description

Parameters

mixed $string

Return Value

string

at line 205
string toUpper(mixed $string)

No description

Parameters

mixed $string

Return Value

string

at line 205
Generator optional(mixed $weight, mixed $default)

No description

Parameters

mixed $weight
mixed $default

Return Value

Generator

at line 205
Generator unique(mixed $reset, mixed $maxRetries)

No description

Parameters

mixed $reset
mixed $maxRetries

Return Value

Generator

at line 205
Generator valid(mixed $validator, mixed $maxRetries)

No description

Parameters

mixed $validator
mixed $maxRetries

Return Value

Generator

at line 205
mixed passthrough(mixed $passthrough)

No description

Parameters

mixed $passthrough

Return Value

mixed

at line 205
int biasedNumberBetween(mixed $min, mixed $max, mixed $function)

No description

Parameters

mixed $min
mixed $max
mixed $function

Return Value

int

at line 205
string file(mixed $sourceDirectory, mixed $targetDirectory, mixed $fullPath)

No description

Parameters

mixed $sourceDirectory
mixed $targetDirectory
mixed $fullPath

Return Value

string

at line 205
string imageUrl(mixed $width, mixed $height, mixed $word, mixed $font_color, mixed $bg_color, mixed $font_size)

No description

Parameters

mixed $width
mixed $height
mixed $word
mixed $font_color
mixed $bg_color
mixed $font_size

Return Value

string

at line 205
string image(mixed $dir, mixed $width, mixed $height, mixed $category, mixed $fullPath, mixed $randomize, mixed $word)

No description

Parameters

mixed $dir
mixed $width
mixed $height
mixed $category
mixed $fullPath
mixed $randomize
mixed $word

Return Value

string

at line 205
string randomHtml(mixed $maxDepth, mixed $maxWidth)

No description

Parameters

mixed $maxDepth
mixed $maxWidth

Return Value

string