PHPackages                             tourze/workerman-user-support - 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-user-support

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

tourze/workerman-user-support
=============================

为Workerman连接增加用户支持

0.1.0(6mo ago)050MITPHPCI passing

Since Apr 2Pushed 6mo ago1 watchersCompare

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

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

Workerman User Support
======================

[](#workerman-user-support)

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

[![Latest Version](https://camo.githubusercontent.com/e958e819a8eb1e33a89bd0bf3f7823f85c7d628e1069ce3a73bce09c6d919b79/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f776f726b65726d616e2d757365722d737570706f72742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/workerman-user-support)[![Total Downloads](https://camo.githubusercontent.com/c8224e49f8f84aa6105c32313196f4fdb5e4080f44a631264141e1ce6656e46c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f776f726b65726d616e2d757365722d737570706f72742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/workerman-user-support)

A library to add user support for Workerman connections, making it easy to associate user data with connections.

Features
--------

[](#features)

- Associate user data with Workerman connections
- Track upload and download statistics for each user
- Support for user speed limits
- Automatic cleanup of user data when connections are closed (using WeakMap)
- PSR-compatible logging and caching

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

[](#installation)

```
composer require tourze/workerman-user-support
```

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

[](#quick-start)

```
