walkor/workerman ? reverse-engineered prompt
Reverse engineered prompt
Build me a PHP library for high performance network apps that can handle HTTP, WebSocket, raw TCP, SSL, and custom protocols from the same simple API.
I want it to feel easy to use, so someone can spin up a server, listen for new connections, receive messages, send replies, and close connections without a lot of boilerplate. It should support running multiple worker processes, async I O, timers, and client connections too, so it can be used for chat servers, APIs, background jobs, and other high traffic services.
Please include basic examples for an HTTP server, a WebSocket echo server, and a TCP server, plus an async client example. If it makes sense, add coroutine support and a way to run concurrent tasks. Keep it production friendly, with clean docs, tests, and sensible defaults. If you need to check current best practices or extension details online, go ahead and look them up.
Are you gonna build this?
make sure you review the code using coderabbit