Generate random fitting fake data with Faker

Code
<?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.5null)->colorName
);

echo 
sprintf(
    
'<img src="%s">',
    
$faker->imageUrl(320240'animals')
);
Result
"Amerigo Montanari"

"""
Incrocio Giulio 75 Piano 2\n
Giorgio veneto, 09820 Forlì-Cesena (PT)
"""

DateTime {#385
+"date": "1996-09-27 04:49:44.000000"
+"timezone_type": 3
+"timezone": "Europe/Berlin"
}

"IndianRed"