Hacker News·3 min read

I built the fastest PHP webserver in the world

E
EGreg
I built the fastest PHP webserver in the world
Dive DeeperCreate a free account to unlock

Faster than Swoole, FrankenPHP, and RoadRunner on unmodified code. No extensions, no adapters, no Docker. One file.

git clone https://github.com/Qbix/webserver cd webserver php qbixserver.php Or grab a self-contained binary curl -LO https://github.com/Qbix/webserver/releases/latest/download/qbixserver-linux-x86_64 chmod +x qbixserver-linux-x86_64 ./qbixserver-linux-x86_64 View on GitHub See examples Everything in one process Replaces nginx + fpm + Node + Redis + supervisor + Docker.

Persistent workers at 120KB each. 400 workers on 200MB. 1,060 req/s where fpm does 78.

Same port as HTTP. Rooms are forked processes with shared state. Socket.IO protocol. No Node.

WordPress, Laravel, Symfony, Drupal. 28 functions shimmed. Reads .htaccess. Just works.

Authority + sandbox with one config change. Same code, different roles. Secrets never leave the authority.

Multiple servers with SQLite. Events replicate. Kill a node, restart - it catches up.

Chat, kanban, SSE stream, REST API, live counter, distributed swarm. All included.

Continue reading on Headlinne

Create a free account to read the full article.

Read full article →

Get smarter about the news

Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.

Create free account

Already have an account? Sign in