PHPackages                             exe/cloak - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. exe/cloak

ActiveLibrary[HTTP &amp; Networking](/categories/http)

exe/cloak
=========

Low-level HTTP client with TLS 1.3 and HTTP fingerprint control - in pure PHP.

v0.2.1(11mo ago)8541MITPHPPHP &gt;=8.4

Since Jul 28Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/drjamesj/cloak)[ Packagist](https://packagist.org/packages/exe/cloak)[ Docs](https://github.com/drjamesj/cloak)[ RSS](/packages/exe-cloak/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (4)Used By (0)

Cloak, a low-level HTTP and TLS 1.3 Client in PHP
=================================================

[](#cloak-a-low-level-http-and-tls-13-client-in-php)

[![WIP](https://camo.githubusercontent.com/a73520bc50c9b4460ca22547e785caec93e2f9bdfab08cd6e5df64777acf63fe/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374617475732d776f726b5f696e5f70726f67726573732d79656c6c6f77)](https://camo.githubusercontent.com/a73520bc50c9b4460ca22547e785caec93e2f9bdfab08cd6e5df64777acf63fe/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374617475732d776f726b5f696e5f70726f67726573732d79656c6c6f77)

Cloak is a pure PHP HTTP and TLS client that allows for low-level control over HTTP and TLS fingerprints.

Installing Cloak
----------------

[](#installing-cloak)

```
composer require exe/cloak
```

Usage
-----

[](#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
-------

[](#roadmap)

- HTTP/1.1 implementation
- HTTP/2 implementation
- Browser profiles

Resources
---------

[](#resources)

- [IETF RFC 8446 - The Transport Layer Security (TLS) Protocol Version 1.3](https://datatracker.ietf.org/doc/html/rfc8446)
- [IETF RFC 8701 - Applying Generate Random Extensions And Sustain Extensibility (GREASE) to TLS Extensibility](https://datatracker.ietf.org/doc/html/rfc8701)
- [Hybrid key exchange in TLS 1.3](https://datatracker.ietf.org/doc/draft-ietf-tls-hybrid-design/)
- [IETF RFC 6962 - Certificate Transparency](https://datatracker.ietf.org/doc/html/rfc6962)
- [IETF RFC 8879 - TLS Certificate Compression](https://datatracker.ietf.org/doc/html/rfc8879)

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance52

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

339d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3588233751bd62a293137672ac9d9e4a75a7e0cfbec54723c4825dacda021702?d=identicon)[executable](/maintainers/executable)

---

Top Contributors

[![drjamesj](https://avatars.githubusercontent.com/u/37321814?v=4)](https://github.com/drjamesj "drjamesj (9 commits)")

---

Tags

httpphphttp clienttlsFingerprinttls13

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/exe-cloak/health.svg)

```
[![Health](https://phpackages.com/badges/exe-cloak/health.svg)](https://phpackages.com/packages/exe-cloak)
```

###  Alternatives

[smi2/phpclickhouse

PHP ClickHouse Client

84711.6M81](/packages/smi2-phpclickhouse)[simpod/clickhouse-client

PHP ClickHouse Client

19132.9k1](/packages/simpod-clickhouse-client)[swoft/http-client

HTTP Client Component for Swoft

1139.3k4](/packages/swoft-http-client)[popphp/pop-http

Pop Http Component for Pop PHP Framework

1020.4k14](/packages/popphp-pop-http)[openapi/openapi-sdk

Minimal and agnostic PHP SDK for Openapi® (https://openapi.com)

171.4k1](/packages/openapi-openapi-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
