Cloak is a pure PHP HTTP and TLS client that allows for low-level control over HTTP and TLS fingerprints.
composer require exe/cloakuse Cloak\Http\Client;
$client = new Client(); // Initialises a HTTP/1.1 client by default
$response = $client->get('https://tls.peet.ws/api/all');
echo $response->getStatus(); // 200
echo $response->getHeader('content-type'); // application/json; charset=utf-8
echo $response->getBody(); // '{...}'- HTTP/1.1 implementation
- HTTP/2 implementation
- Browser profiles