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
^ "Dott. Moreno Rossi"

^ """
Strada Gianriccardo 82 Piano 7\n
Sesto Mercedes, 58535 Cosenza (GO)
"""

^ DateTime @919627377 {#1412
date: 1999-02-21 21:02:57.0 Europe/Berlin (+01:00)
}

^ "LightGray"

Used Versions
PHP 8.0, Laminas MVC 3.2, Symfony 5.2, Laravel 8.28, PHPUnit 9.5, Doctrine ORM 2.8