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
"19.08.1999, 22:40:19"

"18.12.1989, 04:00:01"

"10.03.2008, 16:08:44"
Used Versions
PHP 7.1, Zend 3.0, Symfony 3.2, Laravel 5.2, PHPUnit 5.6, Doctrine 2.6