PHPackages                             tourze/quic-recovery - 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/quic-recovery

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

tourze/quic-recovery
====================

QUIC协议丢包检测和恢复机制

0.0.1(1y ago)0281MITPHPPHP ^8.1CI passing

Since Jun 3Pushed 8mo agoCompare

[ Source](https://github.com/tourze/quic-recovery)[ Packagist](https://packagist.org/packages/tourze/quic-recovery)[ RSS](/packages/tourze-quic-recovery/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (1)

QUIC Recovery Package
=====================

[](#quic-recovery-package)

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

[![Latest Version](https://camo.githubusercontent.com/b928e0645516fcd1755cf532672b37d9213b5dbd4639a62add6dcffa58eadcd0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f717569632d7265636f766572792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/quic-recovery)[![PHP Version](https://camo.githubusercontent.com/6fac3b687c893623baea5f79605990008ed650dfa6782bbe2d6bfe2f10a0f27c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f75727a652f717569632d7265636f766572792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/quic-recovery)[![Build Status](https://github.com/tourze/php-monorepo/actions/workflows/phpunit.yml/badge.svg)](https://github.com/tourze/php-monorepo/actions/workflows/phpunit.yml)[![Total Downloads](https://camo.githubusercontent.com/6b9e061a7696a382d6de45f4a3b779b82639313ccc51402f64042fb800f160d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f717569632d7265636f766572792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/quic-recovery)[![License](https://camo.githubusercontent.com/493da36cfef75750c5215a3f4778b66bb86584d5cd6133d498e6204857ea16c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746f75727a652f717569632d7265636f766572792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/quic-recovery)[![Code Coverage](https://camo.githubusercontent.com/6ce0146325478eb7cebae4cc6139b2af2c161735dd0e3c6ff6802f2c5a708179/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f746f75727a652f7068702d6d6f6e6f7265706f3f7374796c653d666c61742d737175617265)](https://codecov.io/gh/tourze/php-monorepo)

A complete implementation of QUIC protocol packet loss detection and recovery mechanisms, following RFC 9002 specifications.

Table of Contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
    - [Quick Start](#quick-start)
    - [Creating Recovery Instance](#creating-recovery-instance)
    - [When Sending Packets](#when-sending-packets)
    - [When Receiving Packets](#when-receiving-packets)
    - [Processing Received ACK](#processing-received-ack)
    - [Handling Timeout Events](#handling-timeout-events)
- [Dependencies](#dependencies)
- [Advanced Usage](#advanced-usage)
- [Components](#components)
- [Configuration](#configuration)
- [Error Handling](#error-handling)
- [Performance Considerations](#performance-considerations)
- [RFC Compliance](#rfc-compliance)
- [Contributing](#contributing)
- [License](#license)

Features
--------

[](#features)

- **RTT Estimation**: Implements exponential moving average algorithm for round-trip time estimation
- **Loss Detection**: Supports time-based and packet-number-based loss detection algorithms
- **Packet Tracking**: Tracks sent packet status and acknowledgment information
- **ACK Management**: Automatic ACK frame generation and processing
- **Retransmission Management**: Smart retransmission strategy including PTO probing and fast retransmission

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

[](#installation)

```
composer require tourze/quic-recovery
```

Usage
-----

[](#usage)

### Quick Start

[](#quick-start)

```
