Skip to content
@true-async

PHP True Async

Implementation of native asynchrony at the PHP core level

True Asynchronous inside PHP

Imagine PHP with coroutines, where familiar functions support concurrent I/O. No colored async functions. Just do spawn() and go!

70+ standard PHP functions work non-blocking out of the box — fread, fwrite, curl, PDO, sleep and more.

Documentation Download RFC Discord Docker


What is this?

PHP True Async brings native coroutines to the PHP core — no extensions swapping out blocking functions, no framework magic. Regular PHP functions (fread, fwrite, curl, PDO, fsockopen) become non-blocking automatically inside a coroutine.

$task1 = spawn(function() {
    $pdo = new PDO($dsn);
    $stmt = $pdo->prepare("SELECT * FROM users WHERE id = ?");
    $stmt->execute([1]);       // non-blocking I/O, yields to other coroutines
    return $stmt->fetch();
});

$task2 = spawn(function() {
    $socket = fsockopen($host, 9000);
    fwrite($socket, "ping");   // non-blocking, runs concurrently with $task1
});

Project Structure

Repository Description
php-src true-async PHP core with TrueAsync API + coroutine scheduler
php-async Extension implementing the TrueAsync API (libuv reactor)
server Async Server with Http2, Http3
php-true-async-rfc RFC, design documents and rationale
releases Pre-built binaries for Linux, macOS and Windows

Get Started

Full installation instructions for Linux, macOS, Windows and Docker: → Download & Install

Full API reference and guides: → Documentation

Contributing

We welcome contributions of all kinds — code, docs, testing, and community support. → Contributing Guide


💬 Discord · 📖 Docs · 🐛 Issues

Pinned Loading

  1. php-async php-async Public

    The heart of asynchronous PHP, delivered as a core extension and implementing the TrueAsync ABI.

    PHP 384 7

  2. php-src php-src Public

    Forked from php/php-src

    The PHP Interpreter

    C 32

  3. server server Public

    TrueAsync Server

    C 72 2

  4. true-async.github.io true-async.github.io Public

    Documentation for the PHP TrueAsync

    HTML 11 2

  5. releases releases Public

    TrueAsync PHP — pre-built binaries and installer

    Shell 18 2

  6. php-async-core-rfc php-async-core-rfc Public

    RFC: thin Async Core ABI for PHP (zend_async_API) — mechanism-only coroutine API with a policy-free core

    14

Repositories

Showing 10 of 37 repositories
  • releases Public

    TrueAsync PHP — pre-built binaries and installer

    true-async/releases's past year of commit activity
    Shell 18 MIT 2 0 0 Updated Sep 12, 2026
  • true-async.github.io Public

    Documentation for the PHP TrueAsync

    true-async/true-async.github.io's past year of commit activity
    HTML 11 2 0 0 Updated Sep 12, 2026
  • php-src Public Forked from php/php-src

    The PHP Interpreter

    true-async/php-src's past year of commit activity
    C 32 BSD-3-Clause 8,504 1 2 Updated Sep 12, 2026
  • php-async Public

    The heart of asynchronous PHP, delivered as a core extension and implementing the TrueAsync ABI.

    true-async/php-async's past year of commit activity
    PHP 384 7 5 0 Updated Sep 12, 2026
  • server Public

    TrueAsync Server

    true-async/server's past year of commit activity
    C 72 2 10 0 Updated Aug 26, 2026
  • ide-helper Public

    IDE Helpers for TrueAsync

    true-async/ide-helper's past year of commit activity
    PHP 4 MIT 1 0 0 Updated Aug 18, 2026
  • php-claw Public

    An AI-agent orchestration system that metaprograms its own logic, built entirely on PHP TrueAsync

    true-async/php-claw's past year of commit activity
    PHP 14 0 22 1 Updated Aug 16, 2026
  • php-claw-ui Public

    Real-time dashboard for claw — Kanban quest board over issues & workflows, built for the TrueAsync server API

    true-async/php-claw-ui's past year of commit activity
    TypeScript 0 0 19 0 Updated Aug 13, 2026
  • static-php-cli Public Forked from crazywhalecc/static-php-cli

    Build standalone portable PHP binaries on Linux, macOS, Windows, with PHP project together, with popular extensions included.

    true-async/static-php-cli's past year of commit activity
    PHP 4 MIT 412 0 0 Updated Aug 11, 2026
  • phpredis Public

    phpredis fork for TrueAsync PHP (PHP 8.6+ compatibility)

    true-async/phpredis's past year of commit activity
    C 5 0 0 0 Updated Aug 6, 2026

People

This organization has no public members. You must be a member to see who’s a part of this organization.