Star RestPHP
Already starred? Check a public GitHub username below. This is not a GitHub login; only the username is remembered on this browser.
Appearance
Already starred? Check a public GitHub username below. This is not a GitHub login; only the username is remembered on this browser.
The development of RestPHP follows a strict multi-phase architecture blueprint designed for production resilience and world-record performance.
[x] Milestone 1: Zend Engine C-FFI Core Embedding
libphp-embed, clang, rustc).php_embed_init, zend_eval_string, and php_embed_shutdown.[x] Milestone 2: Custom SAPI Implementation
sapi_module_struct implementation.ub_write) to stream directly to Rust memory buffers.send_headers) for HTTP status codes and custom headers.$_SERVER, $_GET, $_POST, $_COOKIE, php://input).[x] Milestone 3: Async Tokio HTTP Server & REST Engine
serve, eval).[x] Milestone 4: Persistent Worker Loop & Laravel Octane Adapter
php_request_startup -> handler -> php_request_shutdown).[x] Milestone 5: Benchmarking Suite & TechEmpower
notify (--watch).The current runtime passed 62 Rust tests and 21 Python boundary tests on PHP 8.2.30 NTS / macOS arm64, with CI workflows covering PHP 8.2, 8.3, and 8.4 alongside Laravel 10, 11, and 12. Local authentic regressions passed against Laravel 10.50.4, 11.57.1, and 12.70.2 with Octane 2.22.0.
HTTPS and ACME were exercised both with provided PEM certificates and against official Pebble v2.8.0 for real TLS-ALPN-01 issuance, restart cache reuse, and scheduled short-lived certificate renewal (720 continuous verified HTTPS probes, 0 failed samples). Public Let's Encrypt issuance still needs an owned public DNS name and inbound TCP 443. A 1,800-second mixed-traffic persistent soak completed 188,144 operations with 0 KiB post-warmup RSS growth and 0 FD growth, and the controlled 2-CPU/2-GiB container benchmark compared RestPHP against FrankenPHP v1.13.4 on PHP 8.2.35 using observed wrk histograms.