What is Webman
Webman is a high-performance service framework built on Workerman, integrating various modules such as HTTP, WebSocket, TCP, and UDP. By utilizing advanced technologies such as resident memory, coroutines, and connection pools, Webman not only breaks through the performance bottleneck of traditional PHP but also greatly expands its application scenarios.
Additionally, Webman provides a powerful plugin mechanism that enables developers to quickly integrate and reuse functionality modules developed by other developers. Whether building websites, developing HTTP APIs, implementing instant messaging, establishing IoT systems, or developing games, TCP/UDP services, Unix Socket services, etc., Webman can handle them effortlessly, showcasing excellent performance and flexibility.
Note
The current document is forwebman v2
version. If you are using v1 version, please refer to the webman v1 documentation
Webman Philosophy
Provide the maximum extensibility and the strongest performance with the minimal kernel.
Webman only provides the core functionalities (routing, middleware, session, custom process interface). All other features reuse the Composer ecosystem, which means you can use familiar functional components in Webman. For example, developers can choose to use Laravel's illuminate/database for database operations, or ThinkPHP's ThinkORM, or other components like Medoo
. Integrating them into Webman is very easy.
Characteristics of Webman
-
High stability. Webman is developed based on Workerman, which is known for its high stability and minimal bugs in the industry.
-
Ultra-high performance. Webman performs about 10 to 100 times better than traditional PHP-FPM frameworks and about twice as fast as Go’s Gin and Echo frameworks.
-
High reusability. Existing Composer ecosystem can be reused without modification.
-
High extensibility. Custom processes are supported, allowing the implementation of any functionality that Workerman can achieve.
-
Super simple and easy to use, with a very low learning curve; code writing is no different from traditional frameworks.
-
Supports binary packaging, allowing direct execution without a PHP environment.
-
Uses the friendly MIT open-source license.
Project Address
GitHub: https://github.com/walkor/webman Don't hesitate to give us a star!
Gitee: https://gitee.com/walkor/webman Don't hesitate to give us a star!
Third-party authoritative benchmarking data
With database query operations, Webman achieves a throughput of 390,000 QPS on a single machine, nearly 80 times higher than the traditional PHP-FPM Laravel framework.
With database query operations, Webman's performance is about twice that of similar Go language web frameworks.
The above data comes from techempower.com