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
"Miriana Sanna"

"""
Rotonda De luca 8\n
Coppola nell'emilia, 86795 Taranto (VT)
"""

DateTime @1118767468 {#397
date: 2005-06-14 18:44:28.0 Europe/Berlin (+02:00)
}

"SeaShell"

Used Versions
PHP 7.2, Zend 3.0, Symfony 4.0, Laravel 5.6, PHPUnit 6.5, Doctrine 2.8