Installation
Installationsskripte für Linux/macOS, Docker-Images und vorkompilierte Windows-Binärdateien.
Ältere Versionen (7)
| Version | Veröffentlichungsdatum | Voraussetzungen | Änderungsprotokoll |
|---|---|---|---|
| TrueAsync 0.6.6 | 2026-04-03 | PHP 8.6-dev (ZTS) | Änderungsprotokoll → |
| TrueAsync 0.6.5 | 2026-03-29 | PHP 8.6-dev (ZTS) | Änderungsprotokoll → |
| TrueAsync 0.6.4 | 2026-03-25 | PHP 8.6-dev (ZTS) | Änderungsprotokoll → |
| TrueAsync 0.6.3 | 2026-03-25 | PHP 8.6-dev (ZTS) | Änderungsprotokoll → |
| TrueAsync 0.6.2 | 2026-03-24 | PHP 8.6-dev (ZTS) | Änderungsprotokoll → |
| TrueAsync 0.6.1 | 2026-03-15 | PHP 8.6-dev (ZTS) | Änderungsprotokoll → |
| TrueAsync 0.6.0 | 2026-03-14 | PHP 8.6-dev (ZTS) | Änderungsprotokoll → |
Aus Quellcode kompilieren
Empfohlene Installationsmethode für Linux und macOS. Das Skript lädt den PHP-Quellcode, die TrueAsync-Erweiterung herunter und kompiliert alles automatisch.
Linux (Ubuntu/Debian)
Ein interaktiver Assistent führt Sie durch die Einrichtung: Auswahl der Erweiterungen, Debug-Modus, Installationspfad und PATH-Konfiguration.
curl -fsSL https://raw.githubusercontent.com/true-async/releases/master/installer/build-linux.sh | bashUbuntu, Debian und andere apt-basierte Distributionen.
Nicht-interaktiver Modus (CI / Automatisierung)
curl -fsSL https://raw.githubusercontent.com/true-async/releases/master/installer/build-linux.sh \
| NO_INTERACTIVE=true EXTENSIONS=all SET_DEFAULT=true bashmacOS
Apple Silicon (ARM) und Intel. Erfordert Homebrew.
curl -fsSL https://raw.githubusercontent.com/true-async/releases/master/installer/build-macos.sh | bashNicht-interaktiver Modus (CI / Automatisierung)
curl -fsSL https://raw.githubusercontent.com/true-async/releases/master/installer/build-macos.sh \
| NO_INTERACTIVE=true EXTENSIONS=all SET_DEFAULT=true bashBuild-Optionen
--prefix DIR | Installationsverzeichnis (Standard $HOME/.php-trueasync) |
--set-default | Als Standard-PHP zum PATH hinzufügen |
--debug | Mit Debug-Symbolen kompilieren |
--extensions PRESET | Erweiterungsset: standard, xdebug, all |
--no-interactive | Interaktiven Assistenten überspringen |
Installationsverwaltung
Nach dem Kompilieren steht das Dienstprogramm php-trueasync zur Verfügung:
php-trueasync rebuild | Aus frischen Quellen neu kompilieren |
php-trueasync version | Installierte Version anzeigen |
php-trueasync uninstall | TrueAsync PHP deinstallieren und PATH bereinigen |
Docker
Vorkompilierte Images mit PHP und TrueAsync. Jedes Image enthält CLI und FPM.
Verfügbare Images
trueasync/php-true-async:0.6.7-php8.6Ubuntu 24.04 — CLI + FPMtrueasync/php-true-async:0.6.7-php8.6-alpineAlpine 3.20 — CLI + FPM (lightweight)trueasync/php-true-async:0.6.7-php8.6-debugUbuntu 24.04 — CLI + FPM (debug symbols)trueasync/php-true-async:0.6.7-php8.6-frankenphpUbuntu 24.04 — FrankenPHP (Caddy + async worker)trueasync/php-true-async:latestUbuntu 24.04 — alias for latest stabletrueasync/php-true-async:latest-alpineAlpine 3.20 — alias for latest stabletrueasync/php-true-async:latest-frankenphpFrankenPHP — alias for latest stableSchnellstart
docker pull trueasync/php-true-async:latest
docker run --rm trueasync/php-true-async:latest php -vSkript ausführen:
docker run --rm -v $(pwd):/app -w /app trueasync/php-true-async:latest php script.phpVerwendung in Dockerfile
FROM trueasync/php-true-async:latest
COPY . /app
WORKDIR /app
CMD ["php", "server.php"]Windows
Vorkompilierte PHP-Binärdateien mit TrueAsync für Windows x64.
SHA256-Hashes sind in sha256sums.txt in jedem Release verfügbar.
Schnellinstallation (PowerShell)
irm https://raw.githubusercontent.com/true-async/releases/master/installer/install.ps1 | iex