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

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

tourze/quic-packets
===================

QUIC协议包处理库

0.1.0(6mo ago)01472MITPHPCI passing

Since Jun 3Pushed 4mo agoCompare

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

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

QUIC Packets
============

[](#quic-packets)

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

\[[![Latest Version](https://camo.githubusercontent.com/0ec760d7ab62060a20170adf884f39552bc24f6d9e48a2fe7d6c4d2fe9248c63/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f717569632d7061636b6574732e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/0ec760d7ab62060a20170adf884f39552bc24f6d9e48a2fe7d6c4d2fe9248c63/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f717569632d7061636b6574732e7376673f7374796c653d666c61742d737175617265)\] () \[[![PHP Version](https://camo.githubusercontent.com/232f2e214d56969035b5ecaf900bc2f20d3dedff8747396282b3daee08478e4a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f75727a652f717569632d7061636b6574732e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/232f2e214d56969035b5ecaf900bc2f20d3dedff8747396282b3daee08478e4a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f75727a652f717569632d7061636b6574732e7376673f7374796c653d666c61742d737175617265)\] () \[[![Total Downloads](https://camo.githubusercontent.com/ef5d8cc3e24170705a56e7a44c7cdf6d6f5a39551cc269370abe626f0772bd30/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f717569632d7061636b6574732e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/ef5d8cc3e24170705a56e7a44c7cdf6d6f5a39551cc269370abe626f0772bd30/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f717569632d7061636b6574732e7376673f7374796c653d666c61742d737175617265)\] () [![License](https://camo.githubusercontent.com/deaa18b3d4f2f075cf64b74993b1e3cb13d9d8b0b7f83dd4730ca2928916dd02/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746f75727a652f717569632d7061636b6574732e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Coverage Status](https://camo.githubusercontent.com/e9118f6cfb6d298b03d6071558a977d100df49e8f0c3217957e362bab3e63370/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d39352532352d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](#testing)

A comprehensive QUIC packet handling library implementing RFC 9000 specifications for PHP 8.1+.

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

[](#table-of-contents)

- [Features](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [Quick Start](#quick-start)
- [API Reference](#api-reference)
- [Advanced Usage](#advanced-usage)
- [Testing](#testing)
- [Architecture](#architecture)
- [Performance](#performance)
- [Security](#security)
- [Contributing](#contributing)
- [License](#license)
- [Roadmap](#roadmap)
- [References](#references)

Features
--------

[](#features)

- **RFC 9000 Compliant**: Full support for QUIC packet format specifications
- **Complete Packet Types**: Initial, Handshake, and 1-RTT packets
- **Efficient Encoding/Decoding**: Optimized binary packet serialization
- **Packet Number Management**: Automatic numbering with loss detection
- **Type-Safe Design**: Modern PHP 8.1+ with enums and readonly properties
- **Comprehensive Testing**: 215 tests with 591 assertions across 19 test files

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- No external dependencies for core functionality

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

[](#installation)

Install via Composer:

```
composer require tourze/quic-packets
```

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

[](#quick-start)

### Basic Packet Creation and Encoding

[](#basic-packet-creation-and-encoding)

```
