<?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')
);
^ "Ettore Orlando"
^ """
Via Caputo 265 Piano 7\n
Settimo Ione, 00346 Lucca (SI)
"""
^ DateTime @680583601 {#1412
: 1991-07-27 05:00:01.0 Europe/Berlin (+02:00)
}
^ "HoneyDew"