Create your own Faker provider for generating fake data

Code
<?php

use Faker\Provider\Base;
use 
Faker\Factory;

class 
IntlDateProvider extends Base
{
    private 
$formatter;
    
    public function 
__construct($generator$locale)
    {
        
parent::__construct($generator);
        
$this->formatter = new IntlDateFormatter(
            (string) 
$locale,
            
IntlDateFormatter::MEDIUM,
            
IntlDateFormatter::MEDIUM
        
);
    }
    
    public function 
intldate()
    {
        
$date $this->generator->dateTime;
        
        return 
$this->formatter->format($date);
    }
}

$faker Factory::create();
$faker->addProvider(new IntlDateProvider($faker'de'));

dump(
    
$faker->intldate,
    
$faker->intldate,
    
$faker->intldate
);
Result
"14.07.2013, 04:50:10"

"04.08.1999, 02:50:54"

"28.04.1975, 23:29:53"
Used Versions
PHP 7.2, Zend 3.0, Symfony 4.0, Laravel 5.6, PHPUnit 6.5, Doctrine 2.8