Thank you! There it is:
<?php
use GuzzleHttp\Client;
use Pipedrive\versions\v2\Api\PersonsApi;
class Test
{
private const API_KEY_IDENTIFIER = 'x-api-token';
public function test()
{
$id = 42;
$configV2 = (new ConfigurationV2())->setApiKey(
self::API_KEY_IDENTIFIER,
'xxxxxxx'
);
$client = new Client();
$personsApi = new PersonsApi($client, $configV2);
$personsApi->getPerson($id);
}
}