Skip to content

Spanish (Peru)#

Faker\Provider\es_PE\Person#

// Generates a Peruvian Documento Nacional de Identidad (DNI) number
echo $faker->dni(); // '83367512'

Faker\Provider\es_PE\Company#

// Generates a Peruvian REG. UNICO DE CONTRIBUYENTES (RUC) number
echo $faker->ruc(); // '20105895410'

Faker\Provider\es_PE\Company#

// Generates a Peruvian REG. UNICO DE CONTRIBUYENTES (RUC) number
echo $faker->ruc(true); // '10105895410'

Faker\Provider\es_PE\Company#

// Generates a REG. UNICO DE CONTRIBUYENTES (RUC) number
echo $faker->ruc(false); // '20105895410'