Locales
Italian (Switzerland)
Italian (Switzerland) locale for Xefi Faker PHP
You need to require the locale to be able to use it
composer require --dev xefi/faker-php-locales-it-ch
Be sure to setup faker with the it_CH locale to be able to use this:
$faker = new Xefi\Faker\Faker('it_CH');
Address
Region
$faker->region(); // Svizzera romanda
Province
$faker->province(); // Zurigo
Province code
Returns a random two-letter canton code.
$faker->provinceCode(); // LU
City
$faker->city(); // Riva San Vitale
Post code
$faker->postcode(); // 6969
House Number
$faker->houseNumber(); // 28
Street Name
$faker->streetName(); // Contrada Industria
Street Address
$faker->streetAddress(); // Via Ospedale 64
Full Address
$faker->fullAddress(); // Via alla Chiesa 97, 6959 Airolo
Colors
Safe Color Name
$faker->safeColorName(); // VerdeAcqua
Color Name
$faker->colorName(); // Salmone
Company
Company
$faker->company(); // Gambarogno Immobiliare SA
Company number
Returns a Swiss enterprise identification number (UID) with a valid check digit, such as "CHE-123.456.789".
$faker->companyNumber(); // CHE-848.590.662
VAT number
Returns a Swiss VAT number, such as "CHE-123.456.789 IVA".
$faker->vat(); // CHE-375.773.808 IVA
Financial
Iban
Please see base method for details. Returns a Swiss IBAN: a 5-digit bank clearing number followed by a 12-digit account number.
$faker->iban(countryCode: null, format: null); // CH2175275639516712041
Person
Name
// Gender: null(both), "M" (male) or "F" (female)
$faker->name(gender: 'F'); // Giorgia Bernasconi
Firstname
// Gender: null(both), "M" (male) or "F" (female)
$faker->firstName(gender: 'F'); // Giulia
Lastname
$faker->lastName(); // Lepori
Title
// Gender: null(both), "M" (male) or "F" (female)
$faker->title(gender: 'F'); // Sig.ra
AVS
Returns a Swiss social security number (AVS) with a valid EAN-13 check digit.
$faker->avs(formatted: false); // 7566727679309
Phone
Please see base methods for every format variant.
Phone number
$faker->phoneNumber(); // 0774559428
Cell phone number
$faker->cellPhoneNumber(); // 0756654663
Landline phone number
$faker->landlinePhoneNumber(); // 0914413315
International format
$faker->spacedIndicatoredPhoneNumber(); // +41 81 487 09 61
Text
Words
$faker->words(words: 3); // i le si
Sentences
$faker->sentences(sentences: 3); // Una comunicazione chiara favorisce la produttività e la fiducia reciproca. L'analisi dei dati aiuta a...
Paragraphs
$faker->paragraphs(paragraphs: 3); // La qualità del servizio resta un obiettivo centrale per ogni azienda. Ogni progetto richiede attenzione e una...