Skip to content

Commit c1c21db

Browse files
OxicodeOxicode
andauthored
Doc RUC (FakerPHP#33)
* add RUC Perú * fix name * fix comment RUC Co-authored-by: Oxicode <juan.quispe@upc.pe>
1 parent ad9abe9 commit c1c21db

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/locales/es_PE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,24 @@
66
// Generates a Peruvian Documento Nacional de Identidad (DNI) number
77
echo $faker->dni; // '83367512'
88
```
9+
10+
### `Faker\Provider\es_PE\Company`
11+
12+
```php
13+
// Generates a Peruvian REG. UNICO DE CONTRIBUYENTES (RUC) number
14+
echo $faker->ruc; // '20105895410'
15+
```
16+
17+
### `Faker\Provider\es_PE\Company`
18+
19+
```php
20+
// Generates a Peruvian REG. UNICO DE CONTRIBUYENTES (RUC) number
21+
echo $faker->ruc(true); // '10105895410'
22+
```
23+
24+
### `Faker\Provider\es_PE\Company`
25+
26+
```php
27+
// Generates a REG. UNICO DE CONTRIBUYENTES (RUC) number
28+
echo $faker->ruc(false); // '20105895410'
29+
```

0 commit comments

Comments
 (0)