class Faker (View source)

Methods

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

Get \Faker\Generator singleton instance

static Faker
make()

Create a new Faker instance

string
dateTime()

Get Korean dateTime format in online shopping industry

Details

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

Get \Faker\Generator singleton instance

This method returns a shared Faker instance that is reused across calls. The instance is initialized with Korean locale and additional providers for commerce and device-related data.

Parameters

string|null $locale

the locale (default: 'ko_KR')

Return Value

Generator

The method returns \Faker\Generator singleton instance

static Faker make()

Create a new Faker instance

This method returns a new Faker instance that provides custom methods like dateTime() for Korean online shopping format.

Return Value

Faker

The method returns a new Faker instance

string dateTime()

Get Korean dateTime format in online shopping industry

Return Value

string

the format in online shopping

Examples

Faker::make()->dateTime() => "1993-06-09 오후 03:08:34"