Installazione
Script di installazione per Linux/macOS, immagini Docker e binari precompilati per Windows.
Versioni precedenti (7)
| Versione | Data di rilascio | Requisiti | Changelog |
|---|---|---|---|
| TrueAsync 0.6.6 | 2026-04-03 | PHP 8.6-dev (ZTS) | Changelog → |
| TrueAsync 0.6.5 | 2026-03-29 | PHP 8.6-dev (ZTS) | Changelog → |
| TrueAsync 0.6.4 | 2026-03-25 | PHP 8.6-dev (ZTS) | Changelog → |
| TrueAsync 0.6.3 | 2026-03-25 | PHP 8.6-dev (ZTS) | Changelog → |
| TrueAsync 0.6.2 | 2026-03-24 | PHP 8.6-dev (ZTS) | Changelog → |
| TrueAsync 0.6.1 | 2026-03-15 | PHP 8.6-dev (ZTS) | Changelog → |
| TrueAsync 0.6.0 | 2026-03-14 | PHP 8.6-dev (ZTS) | Changelog → |
Compilazione dal sorgente
Metodo di installazione consigliato per Linux e macOS. Lo script scarica il codice sorgente di PHP, l'estensione TrueAsync e compila tutto automaticamente.
Linux (Ubuntu/Debian)
Una procedura guidata interattiva vi accompagnerà nella configurazione: scelta delle estensioni, modalità debug, percorso di installazione e configurazione del PATH.
curl -fsSL https://raw.githubusercontent.com/true-async/releases/master/installer/build-linux.sh | bashUbuntu, Debian e altre distribuzioni basate su apt.
Modalità non interattiva (CI / automazione)
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) e Intel. Richiede Homebrew.
curl -fsSL https://raw.githubusercontent.com/true-async/releases/master/installer/build-macos.sh | bashModalità non interattiva (CI / automazione)
curl -fsSL https://raw.githubusercontent.com/true-async/releases/master/installer/build-macos.sh \
| NO_INTERACTIVE=true EXTENSIONS=all SET_DEFAULT=true bashOpzioni di compilazione
--prefix DIR | Directory di installazione (predefinita $HOME/.php-trueasync) |
--set-default | Aggiungere al PATH come php predefinito |
--debug | Compilare con simboli di debug |
--extensions PRESET | Set di estensioni: standard, xdebug, all |
--no-interactive | Saltare la procedura guidata interattiva |
Gestione dell'installazione
Dopo la compilazione, è disponibile l'utilità php-trueasync:
php-trueasync rebuild | Ricompilare da sorgenti aggiornati |
php-trueasync version | Mostrare la versione installata |
php-trueasync uninstall | Disinstallare TrueAsync PHP e pulire il PATH |
Docker
Immagini precompilate con PHP e TrueAsync. Ogni immagine include CLI e FPM.
Immagini disponibili
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 stableAvvio rapido
docker pull trueasync/php-true-async:latest
docker run --rm trueasync/php-true-async:latest php -vEsegui uno script:
docker run --rm -v $(pwd):/app -w /app trueasync/php-true-async:latest php script.phpUtilizzo nel Dockerfile
FROM trueasync/php-true-async:latest
COPY . /app
WORKDIR /app
CMD ["php", "server.php"]Windows
Binari PHP precompilati con TrueAsync per Windows x64.
Gli hash SHA256 sono disponibili in sha256sums.txt in ogni release.
Installazione rapida (PowerShell)
irm https://raw.githubusercontent.com/true-async/releases/master/installer/install.ps1 | iex