PHPackages                             tourze/workerman-relay-worker - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tourze/workerman-relay-worker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tourze/workerman-relay-worker
=============================

Relay Worker

0.3.0(4mo ago)02MITPHPCI passing

Since Apr 3Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/tourze/workerman-relay-worker)[ Packagist](https://packagist.org/packages/tourze/workerman-relay-worker)[ RSS](/packages/tourze-workerman-relay-worker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (5)Versions (7)Used By (0)

Workerman Relay Worker
======================

[](#workerman-relay-worker)

[English](README.md) | [中文](README.zh-CN.md)

[![Latest Version](https://camo.githubusercontent.com/5879c845d33e53509c118a6da21ded808850fbaaf58655864eb85ce2f6539680/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f776f726b65726d616e2d72656c61792d776f726b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/workerman-relay-worker)[![Total Downloads](https://camo.githubusercontent.com/38ad891c611eac7589aad8299f45634aa468d3057e753b3d8465318e2ca15ff8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f776f726b65726d616e2d72656c61792d776f726b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/workerman-relay-worker)[![PHP Version Require](https://camo.githubusercontent.com/4e80f64f7caad58ea7c50fad188bf541ef4aa723e375875e71776be365b99278/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f75727a652f776f726b65726d616e2d72656c61792d776f726b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/workerman-relay-worker)[![License](https://camo.githubusercontent.com/7a01c6590cee4cf84a0eef7edb8b67b97bc7361634ec6528c1deaaab3bf2518d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746f75727a652f776f726b65726d616e2d72656c61792d776f726b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/workerman-relay-worker)[![Code Coverage](https://camo.githubusercontent.com/25302785664d5a8cdcf76f70ff42adf08dd5b6b917d810c411858f48be62149a/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f746f75727a652f7068702d6d6f6e6f7265706f2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/tourze/php-monorepo)

A connection relay worker for Workerman that enables traffic forwarding between different connections (TCP/UDP).

Features
--------

[](#features)

- Support for TCP and UDP connection relaying
- Works with the Workerman PHP framework
- Automatic pipeline creation between source and target connections
- Connection buffering while setting up the relay
- Seamless integration with existing Workerman applications
- Built-in load balancers for distributing connections across multiple targets:
    - Round Robin Load Balancer
    - Random Load Balancer
    - Weighted Load Balancer
    - IP Hash Load Balancer
    - Least Connections Load Balancer

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

[](#installation)

```
composer require tourze/workerman-relay-worker
```

Quick Start
-----------

[](#quick-start)

```
