php workermanWhat can you do?
Workerman is an open source high-performance PHP socket service framework developed purely in PHP.
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. It also 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.
Some application directions of Workerman
Workerman is different from the traditional MVC framework. Workerman can not only be used for web development, but also has broader application fields, such as instant messaging. Classes, Internet of Things, games, service management, other servers or middleware, this undoubtedly greatly improves 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, are not satisfied with the daily work of adding, deleting, modifying, and checking, or want to develop in the direction of an architect or a technical expert, Workerman is very worthwhile. A framework for learning. It is recommended that developers not only use it, but also develop their own open source projects based on Workerman to improve their skills and increase their influence. For example, the Beanbun multi-process web crawler framework is a good example, and it has received many praises shortly after it was launched.
Some application directions of Workerman are as follows:
1. Instant messaging
such as web page instant chat, instant message push, WeChat applet, mobile app message push, PC software Message push, etc.
2, Internet of Things
For example, Workerman communicates with printers, communicates with microcontrollers, smart bracelets, smart homes, shared bicycles, etc.
3. Game server category
such as chess and card games, MMORPG games, etc.
4. SOA service
Use Workerman to encapsulate different functional units of the existing business and provide a unified interface to the outside world in the form of services to achieve system loose coupling, easy maintenance, high availability, Easy to stretch.
5. Other server software
For example, GatewayWorker, PHPSocket.IO, http proxy, sock5 proxy, distributed communication component, distributed variable sharing component, message queue, DNS server, WebServer, CDN Server, FTP server, etc.
6. Middleware
For example, asynchronous MySQL component, asynchronous redis component, asynchronous http component, asynchronous message queue component, asynchronous dns component, file monitoring component, and Many component frameworks developed by third parties, etc.
Obviously it is difficult for the traditional mvc framework to achieve the above functions, so that is why Workerman was born.
For more workerman related technical articles, please visit the workerman Getting Started Tutorial column!
The above is the detailed content of what php workerman can do. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 Linux new version
SublimeText3 Linux latest version
