Initial release — pure PHP web server, 55-73% of nginx throughput

Standalone server with zero dependencies beyond PHP 8.1+.
Static files with in-memory response cache, keep-alive, TCP_NODELAY,
gzip/brotli, WebSocket, live dashboard, rate limiting.

Includes PHAR builder and GitHub Actions CI for static binaries
(Linux x86_64, Linux ARM64, macOS x86_64, macOS Apple Silicon).
This commit is contained in:
Gregory Magarshak
2026-07-20 10:26:59 -04:00
parent 0480c29c69
commit eaa711a4e5
27 changed files with 7191 additions and 1 deletions
+22
View File
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<title>Qbix Server</title>
<style>
body { font-family: system-ui, sans-serif; max-width: 600px; margin: 60px auto; color: #333; }
h1 { color: #2563eb; }
code { background: #f1f5f9; padding: 2px 6px; border-radius: 3px; }
.status { color: #16a34a; }
</style>
</head>
<body>
<h1>Qbix Server</h1>
<p class="status">Server is running.</p>
<p>This page is served from the <code>web/</code> directory.</p>
<p>Endpoints:</p>
<ul>
<li><a href="/Q/health">/Q/health</a> — JSON health check</li>
<li><a href="/Q/dashboard">/Q/dashboard</a> — Live dashboard</li>
</ul>
</body>
</html>
+9
View File
@@ -0,0 +1,9 @@
<?php
header('Content-Type: application/json');
echo json_encode([
'time' => date('c'),
'php' => PHP_VERSION,
'method' => $_SERVER['REQUEST_METHOD'] ?? 'GET',
'uri' => $_SERVER['REQUEST_URI'] ?? '/',
'server' => 'Qbix Server',
]);