- strftime: documentation ( source)
- strtotime: documentation ( source)
- utf8_encode: documentation ( source)
- setlocale: documentation ( source)
<?php
setlocale(LC_TIME, 'fr_FR');
$dateString = '2020-08-08';
$timestamp = strtotime($dateString);
$formattedDate = strftime('%d %B %Y', $timestamp);
//setlocale(LC_ALL, Locale::getDefault()); // restore (if neccessary)
echo utf8_encode($formattedDate);