<?php
use Faker\Factory;
$faker = Factory::create('it_IT');
dump(
// name and address from locale
$faker->name,
$faker->address,
$faker->dateTime,
// with optional(), it may return null
$faker->optional(0.5, null)->colorName
);
echo sprintf(
'<img src="%s">',
$faker->imageUrl(320, 240, 'animals')
);
^ "Dott. Caligola Marino"
^ """
Rotonda Gatti 6 Piano 4\n
Sesto Amedeo, 12662 Rovigo (BT)
"""
^ DateTime @756286814 {#1412
: 1993-12-19 08:40:14.0 Europe/Berlin (+01:00)
}
^ null