RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
$client = new Client();
$response = $client->createRequest()
->setFormat(Client::FORMAT_JSON)
->setMethod('post')
->setUrl('https://ru.ru')
->setHeaders(['Content-Type' => 'application/json'])
->addHeaders(['Authorization' => ''])
->addHeaders(['X-Secret' => ''])
->setData(['data' => $data])
->send();