PHPackages                             tourze/workerman-chain-protocol - 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-chain-protocol

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

tourze/workerman-chain-protocol
===============================

Workerman 链式协议处理器，支持多层协议栈处理数据编解码

0.1.0(6mo ago)01MITPHPCI passing

Since Apr 1Pushed 5mo ago1 watchersCompare

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

READMEChangelog (3)Dependencies (11)Versions (4)Used By (0)

Workerman Chain Protocol
========================

[](#workerman-chain-protocol)

\[[![Latest Version](https://camo.githubusercontent.com/3eb7b35588787d40336b9dd87a1d06112e66911058b9398255b05d8a8868b1ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f776f726b65726d616e2d636861696e2d70726f746f636f6c2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/3eb7b35588787d40336b9dd87a1d06112e66911058b9398255b05d8a8868b1ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f776f726b65726d616e2d636861696e2d70726f746f636f6c2e7376673f7374796c653d666c61742d737175617265)\] () \[[![PHP Version](https://camo.githubusercontent.com/74f639fe5369261dfc1470b7ea2ae253dad8e27b9309baf5f416f85459f49522/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f75727a652f776f726b65726d616e2d636861696e2d70726f746f636f6c2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/74f639fe5369261dfc1470b7ea2ae253dad8e27b9309baf5f416f85459f49522/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f75727a652f776f726b65726d616e2d636861696e2d70726f746f636f6c2e7376673f7374796c653d666c61742d737175617265)\] (composer.json) \[[![Build Status](https://camo.githubusercontent.com/0346e18af1343d739d0405776c07b83798d5bb0200e3efcfdf657e5e662f6403/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f746f75727a652f7068702d6d6f6e6f7265706f2f63692e796d6c3f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/0346e18af1343d739d0405776c07b83798d5bb0200e3efcfdf657e5e662f6403/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f746f75727a652f7068702d6d6f6e6f7265706f2f63692e796d6c3f7374796c653d666c61742d737175617265)\] () \[[![Coverage Status](https://camo.githubusercontent.com/73ee3bab50824f778cedc6b4b3f78bcdab621eef812a979ec388b8ad692a4bff/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f746f75727a652f7068702d6d6f6e6f7265706f2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/73ee3bab50824f778cedc6b4b3f78bcdab621eef812a979ec388b8ad692a4bff/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f746f75727a652f7068702d6d6f6e6f7265706f2e7376673f7374796c653d666c61742d737175617265)\] () \[[![License](https://camo.githubusercontent.com/9cabe2ba98d8dae13890170e2af1a57b405edde1abbf24541c034b40cb256e8c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f746f75727a652f7068702d6d6f6e6f7265706f2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/9cabe2ba98d8dae13890170e2af1a57b405edde1abbf24541c034b40cb256e8c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f746f75727a652f7068702d6d6f6e6f7265706f2e7376673f7374796c653d666c61742d737175617265)\] (LICENSE)

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

Chain protocol processing for Workerman. This package allows you to create a chain of protocol parsers to decode and encode data in Workerman connections.

Features
--------

[](#features)

- Chain-style protocol processing for Workerman
- Protocol-agnostic, works with any protocol that implements Workerman's ProtocolInterface
- Support for both TCP and UDP connections
- Event-driven architecture with Symfony Event Dispatcher
- Comprehensive logging
- Performance monitoring using PHP Timer

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

[](#installation)

```
composer require tourze/workerman-chain-protocol
```

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

[](#quick-start)

```
