1. Go to this page and download the library: Download tourze/quic-streams library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tourze / quic-streams example snippets
use Tourze\QUIC\Streams\StreamManager;
use Tourze\QUIC\FlowControl\FlowControlManager;
// 创建流控制管理器(可选)
$flowControlManager = new FlowControlManager();
// 创建流管理器
$streamManager = new StreamManager(
isServer: true,
flowControlManager: $flowControlManager
);