-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.php
60 lines (55 loc) · 2.8 KB
/
test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
use Faker\Dutch\Factory;
use Faker\Extension\AddressExtension;
use Faker\Extension\CompanyExtension;
use Faker\Extension\CountryExtension;
use Faker\Extension\PersonExtension;
use Faker\Extension\PhoneNumberExtension;
require_once 'vendor/autoload.php';
$faker = Factory::netherlands();
echo 'NL data:' . PHP_EOL;
echo '---------' . PHP_EOL;
echo $faker->ext(AddressExtension::class)->city() . PHP_EOL;
echo $faker->ext(AddressExtension::class)->streetName() . PHP_EOL;
echo $faker->ext(AddressExtension::class)->streetAddress() . PHP_EOL;
echo $faker->ext(AddressExtension::class)->address() . PHP_EOL;
echo $faker->ext(AddressExtension::class)->buildingNumber() . PHP_EOL;
echo $faker->ext(AddressExtension::class)->postcode() . PHP_EOL;
echo PHP_EOL . PHP_EOL;
$faker = Factory::belgium();
echo 'BE data:' . PHP_EOL;
echo '---------' . PHP_EOL;
echo $faker->ext(AddressExtension::class)->city() . PHP_EOL;
echo $faker->ext(AddressExtension::class)->streetName() . PHP_EOL;
echo $faker->ext(AddressExtension::class)->streetAddress() . PHP_EOL;
echo $faker->ext(AddressExtension::class)->address() . PHP_EOL;
echo $faker->ext(AddressExtension::class)->buildingNumber() . PHP_EOL;
echo $faker->ext(AddressExtension::class)->postcode() . PHP_EOL;
echo PHP_EOL;
echo $faker->ext(CompanyExtension::class)->company() . PHP_EOL;
echo $faker->ext(CompanyExtension::class)->companySuffix() . PHP_EOL;
echo $faker->ext(CompanyExtension::class)->jobtitle() . PHP_EOL;
echo PHP_EOL;
echo $faker->ext(CountryExtension::class)->country() . PHP_EOL;
echo PHP_EOL;
echo $faker->ext(PersonExtension::class)->name() . PHP_EOL;
echo $faker->ext(PersonExtension::class)->name('male') . PHP_EOL;
echo $faker->ext(PersonExtension::class)->name('female') . PHP_EOL;
echo $faker->ext(PersonExtension::class)->firstName() . PHP_EOL;
echo $faker->ext(PersonExtension::class)->firstName('male') . PHP_EOL;
echo $faker->ext(PersonExtension::class)->firstName('female') . PHP_EOL;
echo $faker->ext(PersonExtension::class)->firstNameMale() . PHP_EOL;
echo $faker->ext(PersonExtension::class)->firstNameFemale() . PHP_EOL;
echo $faker->ext(PersonExtension::class)->lastName() . PHP_EOL;
echo $faker->ext(PersonExtension::class)->title() . PHP_EOL;
echo $faker->ext(PersonExtension::class)->title('male') . PHP_EOL;
echo $faker->ext(PersonExtension::class)->title('female') . PHP_EOL;
echo $faker->ext(PersonExtension::class)->titleMale() . PHP_EOL;
echo $faker->ext(PersonExtension::class)->titleFemale() . PHP_EOL;
echo $faker->ext(PersonExtension::class)->rrn() . PHP_EOL;
echo $faker->ext(PersonExtension::class)->rrn('male') . PHP_EOL;
echo $faker->ext(PersonExtension::class)->rrn('female') . PHP_EOL;
echo PHP_EOL;
echo $faker->ext(PhoneNumberExtension::class)->phoneNumber() . PHP_EOL;
echo $faker->ext(PhoneNumberExtension::class)->e164PhoneNumber() . PHP_EOL;
echo PHP_EOL;