Skip to content

Commit e40c26a

Browse files
authored
Merge pull request #21 from xefi/en_pk-language
Add en_PK and fr_BE languages
2 parents 7272408 + c788ea9 commit e40c26a

File tree

3 files changed

+278
-2
lines changed

3 files changed

+278
-2
lines changed

content/3.locales/en-pk.md

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
---
2+
title: English (Pakistan)
3+
description: English Pakistan locale for Xefi Faker PHP
4+
---
5+
6+
You need to require the locale to be able to use it:
7+
8+
```bash
9+
composer require --dev xefi/faker-php-locales-en-pk
10+
```
11+
12+
Be sure to set up faker with the `en_PK` locale to be able to use this:
13+
14+
```php
15+
$faker = new Xefi\Faker\Faker('en_PK');
16+
```
17+
18+
## Address
19+
20+
#### Province
21+
```php
22+
$faker->province(); // Punjab
23+
```
24+
25+
#### Province Code
26+
```php
27+
$faker->provinceCode(); // SD
28+
```
29+
30+
#### City
31+
```php
32+
$faker->city(); // Karachi
33+
```
34+
35+
#### Sector Block
36+
```php
37+
$faker->sectorBlock(); // F-11
38+
```
39+
40+
#### Street Name
41+
```php
42+
$faker->streetName(); // Iqbal Road
43+
```
44+
45+
#### Street Address
46+
```php
47+
$faker->streetAddress(); // G-7 Kashmir Avenue
48+
```
49+
50+
#### Postal Code
51+
```php
52+
$faker->postalCode(); // 44000
53+
```
54+
55+
#### Full Address
56+
```php
57+
$faker->fullAddress(); // G-11 Shahrah-e-Pakistan Street, Islamabad ICT
58+
```
59+
60+
## Colors
61+
62+
#### Safe Color Name
63+
```php
64+
$faker->safeColorName(); // Lime
65+
```
66+
67+
#### Color Name
68+
```php
69+
$faker->colorName(); // Saffron
70+
```
71+
72+
## Company
73+
74+
#### Company
75+
```php
76+
$faker->company(); // Attock Petroleum
77+
```
78+
79+
#### NTN
80+
```php
81+
$faker->ntn(); // 57308237
82+
```
83+
84+
## Financial
85+
86+
#### Iban
87+
88+
Please see [base method](/extensions/financial#iban) for details.
89+
90+
```php
91+
$faker->iban(countryCode: 'PK', format: 'See code'); // PK72JJED92839147382930
92+
```
93+
94+
```php
95+
$faker->ifsc(); // G4855732
96+
```
97+
98+
## Person
99+
100+
#### Name
101+
```php
102+
// Gender: null (both), "M" (male) or "F" (female)
103+
$faker->name(gender: 'M'); // Ahmed Khan
104+
```
105+
106+
#### Firstname
107+
```php
108+
$faker->firstName(gender: 'F'); // Ayesha
109+
```
110+
111+
#### Lastname
112+
```php
113+
$faker->lastName(); // Butt
114+
```
115+
116+
## Text
117+
118+
#### Words
119+
```php
120+
$faker->words(words: 3); // Unity Faith Discipline
121+
```
122+
123+
#### Sentences
124+
```php
125+
$faker->sentences(sentences: 3); // The economy of Pakistan is rapidly growing...
126+
```
127+
128+
#### Paragraphs
129+
```php
130+
$faker->paragraphs(paragraphs: 3); // Pakistan has a rich cultural heritage...
131+
```

content/3.locales/fr-be.md

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
---
2+
title: French (Belgium)
3+
description: French Belgian locale for Xefi Faker PHP
4+
---
5+
6+
You need to require the locale to be able to use it
7+
```bash
8+
composer require --dev xefi/faker-php-locales-fr-be
9+
```
10+
11+
Be sure to setup faker with the `fr_BE` locale to be able to use this:
12+
13+
```php
14+
$faker = new Xefi\Faker\Faker('fr_BE');
15+
```
16+
17+
## Address
18+
19+
#### Province
20+
```php
21+
$faker->province(); // Hainaut
22+
```
23+
24+
#### Region
25+
```php
26+
$faker->region(); // Wallonie
27+
```
28+
29+
#### City
30+
```php
31+
$faker->city(); // Bruxelles
32+
```
33+
34+
#### Post code
35+
```php
36+
$faker->postCode(); // 5600
37+
```
38+
39+
#### House Number
40+
```php
41+
$faker->houseNumber(); // 257
42+
```
43+
44+
#### Street Name
45+
```php
46+
$faker->streetName(); // Avenue de la Gare
47+
```
48+
49+
#### Street Address
50+
```php
51+
$faker->streetAddress(); // 257 Avenue de la Gare
52+
```
53+
54+
#### Full Address
55+
```php
56+
$faker->fullAddress(); // 257 Avenue de la Gare, 5600 Bruxelles
57+
```
58+
59+
## Colors
60+
61+
#### Safe Color Name
62+
63+
```php
64+
$faker->safeColorName(); // Noir
65+
```
66+
67+
#### Color Name
68+
```php
69+
$faker->colorName() // BleuRoyal
70+
```
71+
72+
## Company
73+
74+
#### Company
75+
```php
76+
$faker->company(); // Technobel Solutions
77+
```
78+
79+
#### Company Identification Number
80+
```php
81+
$faker->companyNumber(); // 0895340190
82+
```
83+
84+
#### VAT number
85+
```php
86+
$faker->vat(); // BE0895340190
87+
```
88+
89+
## Financial
90+
91+
#### Iban
92+
93+
Please see [base method](/extensions/financial#iban) for details
94+
95+
```php
96+
$faker->iban(countryCode: 'BE', format: 'See code') // BE68539007547034
97+
```
98+
99+
## Person
100+
101+
#### Name
102+
```php
103+
// Gender: null(both), "M" (male) or "F" (female)
104+
$faker->name(gender: 'F') // Isabelle Dupont
105+
```
106+
107+
#### Firstname
108+
```php
109+
// Gender: null(both), "M" (male) or "F" (female)
110+
$faker->firstName(gender: 'F') // Isabelle
111+
```
112+
113+
#### Lastname
114+
```php
115+
$faker->lastName() // Dupont
116+
```
117+
118+
#### RRN (Rijksregisternummer)
119+
120+
This field corresponds to the Belgian "Numéro de registre national", also known as the "Belgian National Number".
121+
```php
122+
// Gender: null(both), "M" (male) or "F" (female)
123+
// Formated: "xxxx-xxxx-xx"
124+
$faker->rrn(gender: 'M', formated: true) // 12 34 56 7890 12
125+
```
126+
127+
## Text
128+
129+
#### Words
130+
131+
```php
132+
$faker->words(words: 3); // gestion des ressources humaines
133+
```
134+
135+
#### Sentences
136+
137+
```php
138+
$faker->sentences(sentences: 3); // Chaque projet nécessite une attention particulière pour garantir la réussite en Belgique...
139+
```
140+
141+
#### Paragraphs
142+
143+
```php
144+
$faker->paragraphs(paragraphs: 3); // La qualité des services reste un objectif central pour les entreprises belges...
145+
```

content/3.locales/fr-fr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ $faker = new Xefi\Faker\Faker('fr_FR');
1818

1919
#### Department
2020
```php
21-
$faker->department(); // ['18' => 'Cher'];
21+
$faker->department(); // ['18' => 'Cher']
2222
```
2323

2424
#### Region
2525
```php
26-
$faker->region(); // "Saint-Pierre-et-Miquelon"
26+
$faker->region(); // Saint-Pierre-et-Miquelon
2727
```
2828

2929
#### City

0 commit comments

Comments
 (0)