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

Get a barcode encoded string as image

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

Get a barcode encoded string as image

Return Value

string

a barcode encoded string as image

Examples

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

static Faker make()

Faker factory method

Return Value

Faker

Examples

Faker::make() the instance of Faker