exe / cloak
Low-level HTTP client with TLS 1.3 and HTTP fingerprint control - in pure PHP.
v0.2.1
2025-07-29 08:19 UTC
Requires
- php: >=8.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.84
- phpstan/phpstan: ^2.1
README
Cloak is a pure PHP HTTP and TLS client that allows for low-level control over HTTP and TLS fingerprints.
Installing Cloak
composer require exe/cloak
Usage
use 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(); // '{...}'
Roadmap
- HTTP/1.1 implementation
- HTTP/2 implementation
- Browser profiles