Locales
Portuguese (Portugal)
Portuguese (Portugal) locale for Xefi Faker PHP
You need to require the locale to be able to use it
composer require --dev xefi/faker-php-locales-pt-pt
Be sure to setup faker with the pt_PT locale to be able to use this:
$faker = new Xefi\Faker\Faker('pt_PT');
Address
Region
$faker->region(); // Alentejo
District
$faker->district(); // Setúbal
City
$faker->city(); // Bragança
Post code
$faker->postcode(); // 5211-691
House Number
$faker->houseNumber(); // 338
Street Name
$faker->streetName(); // Avenida Elias Garcia
Street Address
$faker->streetAddress(); // Rua Marquês de Pombal, 323
Full Address
$faker->fullAddress(); // Largo Alexandre Herculano, 48, 5380-396 Funchal
Colors
Safe Color Name
$faker->safeColorName(); // Amarelo
Color Name
$faker->colorName(); // Lavanda
Company
Company
$faker->company(); // Alentejo Agrícola, S.A.
NIF
Generates a company NIF (NIPC, Número de Identificação de Pessoa Coletiva) with a valid check digit.
$faker->nif(); // 644632020
VAT number
Generates an intra-community VAT number (PT followed by the company NIF).
$faker->vat(); // PT918242703
Financial
NIB
Generates a NIB (Número de Identificação Bancária): bank, branch, account and two check digits.
$faker->nib(); // 026984875227654948468
Iban
Please see base method for details. Generates a Portuguese IBAN built around a valid NIB.
$faker->iban(countryCode: null, format: null); // PT50003559469200216668422
Person
Name
// Gender: null(both), "M" (male) or "F" (female)
$faker->name(gender: 'F'); // Margarida Ribeiro
Firstname
// Gender: null(both), "M" (male) or "F" (female)
$faker->firstName(gender: 'F'); // Íris
Lastname
$faker->lastName(); // Nunes
Title
// Gender: null(both), "M" (male) or "F" (female)
$faker->title(gender: 'F'); // Eng.ª
Personal NIF
Generates a personal NIF (Número de Identificação Fiscal) with a valid check digit.
$faker->personalNif(); // 116778890
Cartão de Cidadão
Generates a Cartão de Cidadão document number (civil ID, its check digit, version and final check digit).
$faker->cartaoCidadao(formatted: true); // 14154192 0 ZY3
Phone
Please see base methods for every format variant.
Phone number
$faker->phoneNumber(); // 294992152
Cell phone number
$faker->cellPhoneNumber(); // 964926930
Landline phone number
$faker->landlinePhoneNumber(); // 266905426
International format
$faker->spacedIndicatoredPhoneNumber(); // +351 965 526 125
Text
Words
$faker->words(words: 3); // produtividade para crescimento
Sentences
$faker->sentences(sentences: 3); // A formação contínua dos utilizadores é uma prioridade para a direção. A análise de dados ajuda a identificar...
Paragraphs
$faker->paragraphs(paragraphs: 3); // A gestão dos recursos é um fator decisivo para o desempenho global. Os métodos de trabalho evoluem consoante...