Turkish (tr_TR) locale for Faker PHP.
composer require --dev xefi/faker-php-locales-tr-trThe service provider is discovered automatically through Composer.
use Xefi\Faker\Faker;
$faker = new Faker('tr_TR');Generators without a tr_TR variant fall back to the default locale.
- Names:
name(),firstName(),lastName(),title(). - Personal identifier:
tcKimlikNo()(T.C. Kimlik No, 11 digits, two check digits). - Company identifier:
vkn()(Vergi Kimlik Numarası, 10 digits with check digit). - Addresses:
province()(81 iller),provinceCode()(plate code 01–81),city(), 5-digitpostcode()starting with the plate code,streetName(),streetAddress()andfullAddress(). - Phone numbers with the
0trunk prefix or the+90indicator. iban():TRIBAN with a valid checksum.- Colours and text in Turkish;
words()follows the Turkish dotted / dotless i lowercase rules.
- Fork the repository and create a branch from
main. - Add an extension under
src/Extensions/and register it inFakerTrTrServiceProvider::boot(). - Add a test under
tests/Unit/. - Run the suite with
vendor/bin/phpunit(ordocker compose run php vendor/bin/phpunit). - Open a pull request against
main.
MIT