Bring runtime awareness to PHP.
An orchestration-aware execution environment bringing ownership, lifecycles, and structured concurrency directly to the PHP process.
Positioning & Architecture
Traditional PHP starts from scratch on every request, wasting CPU cycles on bootstrapping. Nexphant runs a persistent event-loop that holds resources and memory warm.
PHP was built for a shared-nothing architecture, which made it simple but slow. Nexphant unchains the PHP process, moving from transient scripts to a persistent, stateful application runtime.
Every query boots the framework from scratch, spending 10-30ms parsing configs and initializing services.
Workers boot once, keeping connections warm and routing requests directly through concurrent Fibers.
VISUAL ARCHITECTURE
Nexphant separates transport handling, runtime orchestration, and lifecycle ownership into cooperative persistent execution layers for modern PHP applications.
Nexphant isolates transport handling, runtime orchestration, and lifecycle ownership into dedicated persistent execution layers designed for modern stateful PHP systems.
Handles sockets, HTTP, WebSocket, SSE, streaming protocols, connection upgrades, and transport dispatching.
Controls workers, fibers, queues, schedulers, timers, cooperative execution, and runtime orchestration.
Tracks ownership, cancellation, cleanup, graceful draining, persistent state, and runtime resource lifecycles.
Workers stay warm in memory, bypassing standard script startup cycles.
Non-blocking concurrency driven directly by an in-process scheduler.
Automatic context tracking prevents memory leaks and stale sockets.
Developer Onboarding
Write standard PHP, then run it through a persistent runtime built for workers, fibers, queues, and lifecycle-aware execution.
<?php
use Nexphant\App;
$app = App::create();
$app->get('/', fn () => [
'message' => 'Hello Nexphant',
]);
$app->listen(8080);composer create-project nexphant/nexphant my-appcomposer run devStart with routes, workers, queues, and runtime services.
Load Test Benchmark
Benchmarks are shown separately for static JSON baseline and SQLite WAL workload.
Static JSON measures raw transport/runtime response overhead.
benchmarks/k6-test.jsHardware: AMD Ryzen 5 5600H, 16GB RAM, NVMe SSD, CachyOS (Linux 7.0).
Reproducibility Guide & Evidence βARCHITECTURE MAP
Nexphant separates transport handling, runtime orchestration, lifecycle ownership, and infrastructure tooling into modular persistent execution layers.
Nexphant composes transport handling, cooperative runtime orchestration, lifecycle ownership, and infrastructure services into a unified persistent execution platform for PHP.
Sockets, HTTP, WebSocket, SSE, streaming dispatch.
Workers, fibers, queues, schedulers, orchestration.
Ownership tracking, cleanup, cancellation, graceful draining.
INSPIRED BY THE ECOSYSTEM
Nexphant learns from the projects that pushed PHP beyond the traditional request-response lifecycle from event loops and fibers to persistent workers, servers, and runtime bridges.
βDifferent ideas. Shared direction. A faster, persistent future for PHP.β
Nexphant is open-source. Follow the development, contribute ideas, or help shape the runtime layer for modern PHP.