mirror of
https://github.com/Qbix/webserver.git
synced 2026-07-22 07:57:23 +02:00
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).
10 lines
251 B
PHP
10 lines
251 B
PHP
<?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',
|
|
]);
|