boolean

Generate a random bool.

Optionally, a float (between 0.0 and 1.0) or an integer (between 0 and 100) can be passed, which changes the chance of getting true.

{"type": "","}hance of true
echo $faker->boolean(0.5);

// true, true, false

md5

Generate a random MD5 hash string.

{"type": "md5"}

// 'b1f447c2ee6029c7d2d8b3112ecfb160', '6d5d81469dfb247a15c9030d5aae38f1'

sha1

Generate a random SHA-1 hash string.

{"type": "sha1"}

// '20d1061c44ca4eef07e8d129c7000101b3e872af', '28cda1350140b3465ea8f65b933b1dad98ee5425'

sha256

Generate a random SHA-256 hash string.

{"type": "sha256"}

// 'bfa80759a5c40a8dd6694a3752bac231ae49c136396427815b0e33bd10974919'

locale

Generate a random locale string.

{"type": "locale"}

// 'ln_CD', 'te_IN', 'sh_BA'

countryCode

Generate a random two-letter country code string.

{"type": "countryCode"}

// 'LK', 'UM', 'CZ'

countryISOAlpha3

Generate a random three-letter country code string.

{"type": "countryISOAlpha3"}

// 'ZAF', 'UKR', 'MHL'

languageCode

Generate a random two-letter language code string.

{"type": "languageCode"}

// 'av', 'sc', 'as'

currencyCode

Generate a random currency code string.

{"type": "currencyCode"}

// 'AED', 'SAR', 'KZT'

emoji

Generate a random emoji.

{"type": "emoji"}

// '😦', '😎', '😢'