Webman is a PHP framework built on Workerman for HTTP, WebSocket, TCP, and UDP workloads. It targets websites, APIs, messaging, IoT, and custom network services.
Overview
Webman is a high-performance service framework built on Workerman. It combines HTTP, WebSocket, TCP, UDP, and related modules, using resident memory, coroutines, and connection pools to extend what traditional PHP stacks typically handle.
The design keeps a small core—routing, middleware, sessions, and custom process hooks—while pulling most capabilities from Composer packages. Database access can use illuminate/database, ThinkORM, Medoo, or similar libraries integrated into the application.
Use cases span websites, HTTP APIs, instant messaging, IoT systems, games, and TCP or UDP services, including Unix socket services. A plugin system is meant to let teams reuse modules from other authors.
Optional binary packaging lets deployments run without a separate PHP runtime on the host. Guides also cover proxying with nginx, message queues, caching, and multi-app setups.
Key features
- Workerman-based HTTP and WebSocket stack
- Minimal core with Composer ecosystem reuse
- Custom processes and plugin marketplace
- Coroutine and connection pool support
- Database, Redis, and queue integrations
- Optional binary packaging without PHP install
- Middleware, routing, and session handling
- Supports TCP, UDP, and Unix sockets
Use cases
- Building HTTP APIs and websites
- WebSocket and instant messaging backends
- IoT and game network services
- Long-running TCP or UDP microservices