class Faker (View source)

Methods

static Generator
shared(string|null $locale = 'ko_KR')

Get \Faker\Generator singleton instance

string
site()

Get a online shopping company

string
barcode(string|null $value = null)

Get a barcode encoded string as image

string
interleaved2of5(string $value)

Render a numeric Interleaved 2 of 5 barcode as a data URI.

static Faker
make()

Faker factory method

Details

static Generator shared(string|null $locale = 'ko_KR')

Get \Faker\Generator singleton instance

Parameters

string|null $locale

the locale

Return Value

Generator

The method returns \Faker\Generator singleton instance

string site()

Get a online shopping company

Return Value

string

the name of the online shopping company

Examples

Faker::make()->site() '티몬', '쿠팡' or '11번가'

string barcode(string|null $value = null)

Get a barcode encoded string as image

Parameters

string|null $value

Return Value

string

a barcode encoded string as image

Examples

Faker::make()->barcode() a encoded barcode image like 'data:image/png;base64,...'

string interleaved2of5(string $value)

Render a numeric Interleaved 2 of 5 barcode as a data URI.

Parameters

string $value

Return Value

string

static Faker make()

Faker factory method

Return Value

Faker

Examples

Faker::make() the instance of Faker