exe / cloak
Low-level HTTP client with TLS 1.3 and HTTP fingerprint control - in pure PHP.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/exe/cloak
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