Locales
German (Germany)
German Germany locale for Xefi Faker PHP
You need to require the locale to be able to use it
composer require --dev xefi/faker-php-locales-de-de
Be sure to setup faker with the de_DE
locale to be able to use this:
$faker = new Xefi\Faker\Faker('de_DE');
Address
Region
$faker->region(); // ['BW' => 'Baden-Württemberg'];
City
$faker->city(); // Bonn
House Number
$faker->streetName(); // 174
Street Name
$faker->streetName(); // Beethoven Ring
Street Address
$faker->streetAddress(); // Wilhelm Weg 170
Zip code
$faker->zipCode(); // 33950
Full Address
$faker->fullAddress(); // Kleist Ring 17, 41661 Braunschweig, Thüringen
Colors
Safe Color Name
$faker->safeColorName(); // DunkelRot
Color Name
$faker->colorName() // Schwarz
Company
Company
$faker->company(); // Lindholm Logistik
Ust IdNr
$faker->ustIdNr(); // DE7593849123
Handelsregisternummer
$faker->handelsregisternummer(); // HRB84923
Financial
Iban
Please see base method for details
$faker->iban(countryCode: 'DE', format: 'See code') // US7630004028379876543210
Person
Name
// Gender: null(both), "M" (male) or "F" (female)
$faker->name(gender: 'F') // Jan Zimmermann
Firstname
// Gender: null(both), "M" (male) or "F" (female)
$faker->firstName(gender: 'F') // Jana
Lastname
$faker->lastName() // Klein
Text
Words
$faker->words(words: 3); // ressourcenmanagement ist essentiell
Sentences
$faker->sentences(sentences: 3); // Kontinuierliche Verbesserung hilft Unternehmen wettbewerbsfähig und ...
Paragraphs
$faker->paragraphs(paragraphs: 3); // Die Nutzung von Technologie ermöglicht es Teams, smarter ...