Tagged articles
workerman
39 articles · Page 1 of 1
PHP 8.6 adds a native Io\Poll API that brings epoll/kqueue support into the engine, and a Symfony polyfill makes the same API usable on PHP 8.1‑8.5, enabling Workerman’s event loop to run without C extensions; benchmarks show up to double the throughput with zero code changes when upgrading.
EpollPHPperformance benchmark
0 likes · 10 min read

This article presents a pure‑PHP implementation of the RFC6455 WebSocket protocol, detailing its handshake, framing, state management, and security features, and shows how to integrate the Ratchet RFC6455 library with the asynchronous Workerman framework, including installation, full source code, and step‑by‑step testing.
WebSocketasynchronousprotocol
0 likes · 8 min read

This article demonstrates a concise method to empower Webman command modules with event‑loop capabilities by extending the Worker class, creating an AbstractCommand base, and defining a concrete command that runs within the event‑loop, complete with runnable code examples and execution output.
CommandWebmanevent-loop
0 likes · 7 min read

The article analyzes the recent HttpArena benchmark results, highlighting how the PHP Workerman WebSocket implementation outperforms Rust and TypeScript frameworks on a high‑end Threadripper system, and explains the platform’s testing methodology, hardware setup, and the broader implications for real‑time web development.
BackendHttpArenaPHP
0 likes · 7 min read

PHPSocket.IO is a PHP implementation of the Socket.IO server that offers full compatibility with v1.3‑v2.x clients, automatic fallback to long‑polling, and seamless integration with PHP frameworks, and this guide walks you through its core features, differences, installation, and sample server‑client code.
PHPReal-timeSocket.IO
0 likes · 10 min read

An open‑source, instant‑interaction chatroom called “Tadpole” is built with PHP’s Workerman framework and HTML5, leveraging WebSocket for real‑time communication; the guide outlines its key features, installation steps for Linux and Windows, and usage examples for developers to extend the game.
HTML5PHPReal-time Chat
0 likes · 3 min read

This guide introduces the PHP AsyncIO extension built on PHP Fiber and Workerman, explains its high‑performance features, shows how to install and quickly start with code examples for basic, concurrent, timeout‑controlled, and managed tasks, and provides a complete API reference and advanced usage tips.
FiberPHPasyncio
0 likes · 9 min read

The Asyncio‑Gamekit library provides a Workerman‑based asynchronous game framework for PHP, offering room lifecycle management, player communication, broadcasting, timers, load balancing, persistence, logging, and testing, enabling developers to quickly build WebSocket‑driven multiplayer games such as card, board, and real‑time battle titles.
Game FrameworkPHPWebSocket
0 likes · 15 min read

This guide walks you through setting up a Douyin live‑room ranking service using PHP 8.1+, Node.js 16+, Composer, and Workerman, covering required tools, installation steps, parameter configuration for room_id or live_id with cookies, and how to launch and preview the real‑time WebSocket server.
DouyinNode.jsPHP
0 likes · 5 min read

This guide introduces Workerman‑JsonRpc, a lightweight PHP RPC framework built on Workerman, detailing its key features, environment requirements, installation steps, synchronous and asynchronous client usage, server implementation, and built‑in monitoring capabilities for creating scalable network applications.
BackendJSON-RPCPHP
0 likes · 7 min read

TechEmpower Web Benchmarks provides a standardized, multi‑round performance evaluation of web frameworks—covering JSON serialization, database queries, file handling, and real‑time communication—using metrics like RPS and throughput, with detailed methodology, community participation, and hardware specifications illustrated by Workerman’s Round 23 results.
Backend FrameworksPHPTechEmpower
0 likes · 5 min read

This article introduces Workerman, an open‑source pure‑PHP high‑performance application container, outlines its key features and typical use cases, and provides step‑by‑step installation, server‑side and client‑side code examples, as well as Nginx reverse‑proxy configuration for secure WebSocket deployment.
PHPReal-timeWebSocket
0 likes · 11 min read

This article examines common misconceptions about PHP performance, compares it with Go using Workerman, Swoole, and other frameworks, and explains why modern PHP frameworks claim high speed while highlighting JSON handling, coroutines, and asynchronous programming in PHP.
BackendPHPSwoole
0 likes · 7 min read

This guide shows how to use PHP's popen with Workerman 5.0 and a WebSocket worker to run command‑line tasks asynchronously, manage a process pool, and stream output to a web client, enabling a functional web‑based SSH interface.
AsyncProcessPHPWebSocket
0 likes · 5 min read

Workerman/http-client is a high‑performance, asynchronous PHP HTTP client that follows PSR‑7, includes a built‑in connection pool, supports multiple protocols, and can be installed via Composer; the guide shows installation steps, coroutine usage, concurrent request examples, and integration with Webman.
Async HTTPPHPPSR-7
0 likes · 6 min read

This guide explains how to install the workerman/rabbitmq package, set up producer and consumer scripts for both Workerman and PHP‑FPM environments, and run asynchronous RabbitMQ messaging using detailed PHP code examples and configuration options.
BackendMessage QueuePHP
0 likes · 7 min read

Workerman 5.0 has been officially released after two years of development, bringing performance boosts, coroutine support, full compliance with the RFC3875 CGI specification, PHP 8.3 compatibility, and detailed installation and upgrade instructions, including version differences and status checks for both pre‑5.0 and post‑5.0 environments.
CGIPHPRFC3875
0 likes · 7 min read

When upgrading Workerman or Webman‑Framework, a PHP fatal error can occur due to an outdated Alibaba Cloud Composer mirror, and the solution involves removing the mirror, setting the correct package version, or switching to an alternative Composer proxy.
ComposerDependency ManagementPHP
0 likes · 3 min read

Workerman is an open‑source, high‑performance PHP application container that goes beyond web scripting, offering multi‑process, non‑blocking I/O support for TCP/UDP, WebSocket, HTTP, and custom protocols, with recent updates adding timers, request APIs, and WebSocket enhancements.
PHPasynchronoushigh-performance
0 likes · 3 min read

PHPCreeper is a high‑performance PHP crawler built on Workerman that leverages asynchronous I/O, multi‑process, distributed deployment and headless‑browser support; this guide covers installation via Composer, core architecture, producer/downloader/parser implementation, Redis configuration and how to start the service to fetch dynamic pages such as weather forecasts.
ComposerPHPPHPCreeper
0 likes · 13 min read

This guide explains how to implement a Casbin Watcher for distributed policy synchronization using Workerman's asynchronous Redis client in PHP, covering the underlying principles, required interfaces, code implementation, and a complete usage example with publish‑subscribe messaging.
CasbinPHPWatcher
0 likes · 7 min read

This guide explains how to implement a custom TCP protocol in PHP using Workerman for Unity3D multiplayer games, covering the sticky‑packet problem, protocol interface methods, two concrete protocol examples, and step‑by‑step testing of packet framing and splitting.
PHPSticky PacketsTCP
0 likes · 9 min read

Workerman is an open‑source, high‑performance pure‑PHP application container that breaks traditional PHP limits, supporting TCP, UDP, WebSocket, HTTP, and custom protocols, while the article also lists its recent changelog updates and welcomes several new contributors.
NetworkingPHPhigh-performance
0 likes · 5 min read

This guide walks you through installing Webman on ServBay, configuring routes, controllers, and multiple databases, then running the project to demonstrate high‑concurrency PHP web applications with real‑time API endpoints.
BackendPHPServBay
0 likes · 8 min read

The author benchmarked Go's standard HTTP library against PHP frameworks Workerman, Webman, and Swoole (including coroutine mode) on a 4‑core Ubuntu 20.04 Aliyun instance using ApacheBench with and without keep‑alive, revealing that Workerman and Webman often outperform Go in raw request‑per‑second throughput.
GoWebmanapachebench
0 likes · 6 min read

This tutorial walks through installing EMQX as an MQTT broker using Docker, configuring the server, and creating PHP publisher and subscriber clients with the Workerman MQTT library, plus WebSocket and MQTT.js examples for full end‑to‑end IoT communication.
DockerEMQXIoT
0 likes · 11 min read

This guide explains how to install Workerman 5.0, set up the Revolt event‑loop and the workerman/http-client component, and write PHP code that performs synchronous‑style asynchronous HTTP requests, including a concurrent benchmark example and a link to the GitHub repository.
Async HTTPPHPRevolt
0 likes · 9 min read

This guide explains how to use the high‑performance Workerman framework to create a UDP‑based asynchronous SIP server in PHP, covering protocol basics, business requirements, socket handling, multi‑process deployment, heartbeat management, and sample output.
Asynchronous ServerPHPSIP
0 likes · 11 min read

This guide explains the HTTP chunked transfer encoding mechanism, details its format, and provides a complete PHP Workerman server and JavaScript client implementation to stream data chunk‑by‑chunk, including installation steps, code examples, and expected output.
Chunked Transfer EncodingHTTPJavaScript
0 likes · 9 min read

Workerman is an open‑source, pure‑PHP high‑performance application container that acts as a low‑level service framework, enabling developers to build TCP/UDP proxies, game, mail, FTP servers, and even PHP‑based versions of Redis, databases, Nginx, and php‑fpm with massive concurrency.
PHPasynchronoushigh-performance
0 likes · 3 min read

Workerman is an open‑source, high‑performance PHP application container that provides a low‑level service framework for building TCP/UDP, WebSocket, HTTP, and custom protocol servers, and this guide explains its core concepts, the Worker and Connection classes, and a simple usage example with code.
PHPasync IOnetwork programming
0 likes · 4 min read

Workerman is an open‑source, pure‑PHP high‑performance application container that acts like a PHP‑based Nginx, enabling developers to create TCP/UDP, WebSocket, HTTP services and even custom servers such as Redis or FTP, with multi‑process, epoll and non‑blocking I/O support.
NetworkingPHPbackend development
0 likes · 3 min read

This guide shows how to install the OpenAI PHP async client and implement streaming and non‑streaming chat, image generation, audio speech, and embedding features using Workerman and Webman, including Azure OpenAI support, with complete code examples.
APIOpenAIPHP
0 likes · 6 min read

This article compares traditional Linux crontab with the PHP‑based Workerman Crontab, highlighting crontab's high‑availability, load‑balancing, and permission limitations, and demonstrating how Workerman Crontab offers second‑level precision, dynamic management, distributed deployment, and superior performance for modern task scheduling needs.
BackendHigh AvailabilityPHP
0 likes · 7 min read

This article compares the high‑performance Webman PHP framework with OpenResty, ThinkPHP6, and traditional FPM setups, detailing architecture, request handling, and extensive ApacheBench benchmark results that show Webman's superior QPS and lower latency.
PHPThinkPHPWebman
0 likes · 12 min read

This article explains how to create a Webman plugin that integrates Nacos for configuration management, covering design goals, implementation details, code examples, problem fixes, and service load‑balancing strategies for both client and provider sides.
ConfigurationNacosPHP
0 likes · 13 min read

This guide explains what Webman is, how to install it, run projects on Windows and Linux, configure a custom HTTP proxy handler, and set up Nginx reverse proxy with HTTPS, providing step‑by‑step commands and code examples for a high‑performance PHP backend.
HTTP ProxyPHPWebman
0 likes · 6 min read

This article explains why traditional crontab cannot meet second‑ or millisecond‑level scheduling requirements in PHP projects and demonstrates how to use Workerman and Swoole timers, including code examples for one‑time, recurring, and task‑based executions.
BackendSwooleTimer
0 likes · 6 min read

This tutorial explains how to use the Workerman PHP socket framework and GatewayWorker to replace HTTP long‑polling with WebSocket‑based real‑time communication, covering protocol basics, short vs. long connections, integration with MVC frameworks, and complete client‑ and server‑side code examples.
Long ConnectionPHPWebSocket
0 likes · 8 min read
