I'm trying to test the DeepL API on my local machine but I'm getting this error in PHP :
DeepL\ConnectionException: SSL certificate problem: self signed certificate in certificate chain.
My code is simple :
<?php
require __DIR__ . '/vendor/autoload.php';
use DeepL\DeepLException;
use DeepL\Translator;
try
{
$authKey = "HIDDEN_KEY";
$translator = new Translator($authKey);
$result = $translator->translateText('Hello, world!', null, 'fr');
echo $result->text; // Should print "Bonjour, le monde!"
} catch (DeepLException $e)
{
echo "KO";
error_log($e);
}
I realize this probably won't happen on the actual server but isn't there any way to test the API locally first ?