Home > PHP Framework > Workerman > How about workerman framework

How about workerman framework

(*-*)浩
Release: 2019-12-02 11:06:35
Original
2384 people have browsed it

How about workerman framework

workerman is a high-performance PHP socket server framework. Workerman is based on PHP multi-process and libevent event polling library. PHP developers only need to implement one or two interfaces , you can develop your own network applications, such as Rpc services, chat room servers, mobile game servers, etc.

Workerman's goal is to make it easier for PHP developers to develop high-performance socket-based application services without having to understand the details of PHP sockets and PHP multi-processes. (Recommended study: workerman tutorial)

workerman itself is a PHP multi-process server framework, with PHP process management and socket communication modules, so it does not rely on php-fpm and nginx Or these containers such as apache can run independently.

Workerman is not reinventing the wheel. It is not an MVC framework, but a lower-level and more general socket service framework. You can use it to develop tcp agents, ladder agents, game servers, mail servers, and ftp servers. , and even develop a PHP version of redis, PHP version of database, PHP version of nginx, PHP version of php-fpm, etc.

Workerman can be said to be an innovation in the field of PHP, allowing developers to completely get rid of the constraints that PHP can only do WEB.

In fact, Workerman is similar to a PHP version of nginx, and the core is also multi-process Epoll non-blocking IO. Each Workerman process can maintain tens of thousands of concurrent connections.

Because it resides in memory, it does not rely on containers such as Apache, nginx, and php-fpm, and has ultra-high performance.

Supports TCP, UDP, UNIXSOCKET, long connections, Websocket, HTTP, WSS, HTTPS and other communication protocols as well as various custom protocols.

It has many high-performance components such as timers, asynchronous socket clients, asynchronous Mysql, asynchronous Redis, asynchronous Http, and asynchronous message queues.

Workerman is different from the traditional MVC framework. Workerman can not only be used for web development, but also has a wider range of application fields, such as instant messaging, Internet of Things, games, service management, other servers or middleware. It has undoubtedly greatly improved the vision of PHP developers.

There is currently a shortage of PHP developers in these fields. If you want to have your own technical advantages in the PHP field, you are not satisfied with the daily work of adding, deleting, modifying, and checking, or you want to develop in the direction of an architect or a technical expert. , Workerman are all frameworks worth learning.

The above is the detailed content of How about workerman framework. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template