use shardimage\shardimagephp\auth\Client;
use shardimage\shardimagephp\factories\Transformation;
$client = new Client([
'apiKey' => '<apiKey>',
'apiSecret' => '<apiSecret>',
'imageSecret' => '<imageSecret>',
'cloudId' => '<cloudId>',
]);
$transformations = (new Transformation())->gFace()->zoom(500)->group()->size(370)->round("max");
$url = $this->client->getUrlService()->create([
'publicId' => 'olivia.jpg',
'cloudId' => '<cloudId>',
], [
'security' => 'basic',
'transformation' => $transformations,
]);