实验版本 · v0.9.4

下载 TrueAsync

Linux/macOS 安装脚本、Docker 镜像和预编译 Windows 二进制文件。

$
curl -fsSL https://raw.githubusercontent.com/true-async/releases/master/installer/build-linux.sh | bash
安装方式

选择构建方式

build-linux.sh
# Ubuntu / Debian - interactive wizard
curl -fsSL https://raw.githubusercontent.com/true-async/releases/master/installer/build-linux.sh | bash

推荐的 Linux 和 macOS 安装方式。脚本会自动下载 PHP 源码、TrueAsync 扩展并完成编译。 安装文档 →

编辑器工具

IDE 自动补全与桩文件

安装开发依赖包,为 async 核心、HTTP 服务器和 ClickHouse 客户端提供自动补全、内联文档和静态分析桩文件。支持 PhpStorm、PHPStan 和 Psalm。需要 PHP 8.6+。

composer require --dev true-async/ide-helper
GitHub 上的 IDE helper
预编译二进制文件

获取适合您平台的软件包

Linux
x86-64 · aarch64
build-linux.sh
macOS
Apple Silicon · Intel
build-macos.sh
Windows
x64 · Thread-safe
windows-x64.zip

系统要求

  • 启用 async 核心构建 (--enable-async)。
  • 线程安全 (ZTS) 的 PHP 构建。
  • x86-64 / ARM64 上的 Linux、macOS 或 Windows。

验证下载

每个 Windows 发行版都附带 SHA-256 校验和。安装前请验证完整性:

# check the archive against the release digest
sha256sum -c async-0.9.4.tar.gz.sha256

# verify the maintainer signature
gpg --verify async-0.9.4.tar.gz.asc