PHPackages                             amphp/http-tunnel - 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. amphp/http-tunnel

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

amphp/http-tunnel
=================

HTTP/1.1 CONNECT tunnel connector built on the Amp concurrency framework

v2.0.0(1y ago)131.0M↑50.7%3[1 issues](https://github.com/amphp/http-tunnel/issues)8MITPHPPHP &gt;=8.1CI failing

Since Dec 31Pushed 1y ago5 watchersCompare

[ Source](https://github.com/amphp/http-tunnel)[ Packagist](https://packagist.org/packages/amphp/http-tunnel)[ Docs](https://github.com/amphp/http-tunnel)[ GitHub Sponsors](https://github.com/amphp)[ RSS](/packages/amphp-http-tunnel/feed)WikiDiscussions 2.x Synced 2d ago

READMEChangelog (4)Dependencies (11)Versions (6)Used By (8)

http-tunnel
===========

[](#http-tunnel)

[![License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)

This package provides an HTTP and HTTPS `CONNECT` tunnel for PHP based on [Amp](https://github.com/amphp/amp).

Installation
------------

[](#installation)

This package can be installed as a [Composer](https://getcomposer.org/) dependency.

```
composer require amphp/http-tunnel
```

Examples
--------

[](#examples)

More extensive code examples reside in the [`examples`](./examples) directory.

```
use Amp\Http\Tunnel\Http1TunnelConnector;

$connector = new Http1TunnelConnector('127.0.0.1:5512');

// $connector may now be used anywhere requiring an instance of Amp\Socket\SocketConnector.
```

Versioning
----------

[](#versioning)

`amphp/http-tunnel` follows the [semver](http://semver.org/) semantic versioning specification like all other `amphp` packages.

Security
--------

[](#security)

If you discover any security related issues, please email [`me@kelunik.com`](mailto:me@kelunik.com) instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information.

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 70% 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 ~373 days

Recently: every ~467 days

Total

6

Last Release

508d ago

Major Versions

v1.0.0 → v2.0.0-beta.12023-05-07

PHP version history (2 changes)1.x-devPHP &gt;=7.2

v2.0.0-beta.1PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1628287?v=4)[Aaron Piotrowski](/maintainers/Trowski)[@trowski](https://github.com/trowski)

![](https://www.gravatar.com/avatar/12852217f3369e8144bc9ce6ac2a2341c28c5512c5b3df5749bfbbd45b6877ff?d=identicon)[kelunik](/maintainers/kelunik)

---

Top Contributors

[![kelunik](https://avatars.githubusercontent.com/u/2743004?v=4)](https://github.com/kelunik "kelunik (21 commits)")[![trowski](https://avatars.githubusercontent.com/u/1628287?v=4)](https://github.com/trowski "trowski (7 commits)")[![danog](https://avatars.githubusercontent.com/u/7339644?v=4)](https://github.com/danog "danog (1 commits)")[![enumag](https://avatars.githubusercontent.com/u/539462?v=4)](https://github.com/enumag "enumag (1 commits)")

---

Tags

connecthttp-tunnelphphttpasyncamphpconnectorconnecttunnel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/amphp-http-tunnel/health.svg)

```
[![Health](https://phpackages.com/badges/amphp-http-tunnel/health.svg)](https://phpackages.com/packages/amphp-http-tunnel)
```

###  Alternatives

[amphp/http-server

A non-blocking HTTP application server for PHP based on Amp.

1.3k6.7M110](/packages/amphp-http-server)[danog/madelineproto

Async PHP client API for the telegram MTProto protocol.

3.5k902.0k23](/packages/danog-madelineproto)[amphp/http-client

An advanced async HTTP client library for PHP, enabling efficient, non-blocking, and concurrent requests and responses.

7309.5M204](/packages/amphp-http-client)[amphp/websocket-client

Async WebSocket client for PHP based on Amp.

1655.1M59](/packages/amphp-websocket-client)[amphp/websocket

Shared code for websocket servers and clients.

465.2M11](/packages/amphp-websocket)[amphp/redis

Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.

167714.3k59](/packages/amphp-redis)

PHPackages © 2026

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