About Workerman Chat
Workerman Chat is an open-source chat room application built in PHP on top of the Workerman asynchronous event-driven framework, specifically using its GatewayWorker component. It is aimed at PHP developers who want a working example or starting point for a real-time, distributed chat system without adopting a different language's runtime for WebSocket handling.
It communicates over the WebSocket protocol, supports any browser capable of HTML5 or Flash, and offers multiple chat rooms, private messaging between users, automatic reconnection on disconnect, automatic parsing of Weibo image links, and support for Weibo-style emoticons in chat content. Business logic is deliberately kept in a single file, Applications/Chat/Event.php, making it straightforward to read through and adapt as a starting point. The system is also designed to support deployment across multiple servers for scaling beyond a single machine.
Installation is done by cloning the repository and running composer install, after which the application can be started in debug or daemon mode on Linux, or via a batch file on Windows, noting that stop, reload and status commands are not available on Windows. Workerman Chat is written in PHP and released under the MIT license.
Key features
- WebSocket-based real-time chat rooms
- Private messaging between users
- Automatic reconnection on disconnect
- Weibo image and emoticon parsing
- Multi-server distributed deployment support
- Business logic concentrated in a single file
Good fit for
- Learning PHP WebSocket chat architecture
- Starting point for a distributed chat room
Workerman Chat: questions and answers
- What is Workerman Chat used for?
- Workerman Chat is a free, MIT-licensed, high-performance PHP WebSocket chat room built on the Workerman and GatewayWorker frameworks, supporting distributed deployment. It is a good fit for learning PHP WebSocket chat architecture and starting point for a distributed chat room.
- Is Workerman Chat open source?
- Yes. Workerman Chat is open source under the MIT licence. Its source code is on GitHub at walkor/workerman-chat and is written mainly in PHP.
- Is Workerman Chat free?
- Yes. Workerman Chat is open source, so the software itself is free to use.
- Can I self-host Workerman Chat?
- Yes. Workerman Chat can be self-hosted on your own server or infrastructure; there is no official hosted version.
- What are some alternatives to Workerman Chat?
- Similar open-source tools in the Team Chat category include Haven, Campfire and The Lounge. SaaS products in the same category include floors.js, Google Chat and JANDI.
- Is Workerman Chat actively maintained?
- The most recent commit to Workerman Chat was on 12 August 2023. The project has 1.2k stars on GitHub.
Open-source alternatives to Workerman Chat
See all
Haven
Team Chat
Self-hosted private chat: no cloud, no telemetry, no Big Tech. Discord alternative that ru
AGPL-3.0vs Discord★ 1k
Campfire
Team Chat
Super simple group chat, without a subscription
MITvs Slack★ 4.8k
The Lounge
Team Chat
💬 Modern, responsive, cross-platform, self-hosted web IRC client
MIT★ 6.4k
Cinny
Team Chat
Yet another matrix client
AGPL-3.0vs Slack★ 4k
Sharkord
Team Chat
Lightweight, self-hosted, open-source chat server with voice, video, text, and screen shar
MITvs Discord★ 1.6k
Movim
Team Chat
Movim - Decentralized social platform
AGPL-3.0★ 2.1k
SaaS alternatives to Workerman Chat
See all
floors.js
Team Chat
Adds a Habbo-style 3D chat room to any website with one script tag so visitors can chat in real time
SaaS
Google Chat
Team Chat
Messaging and spaces inside Google Workspace with Meet and Docs integration
SaaS
JANDI
Team Chat
Korean team messenger and collaboration tool with file sharing and task management
SaaS
Kik
Team Chat
Mobile messaging app with private chats, public groups and communities
SaaS
Slackoff
Team Chat
Slack app for out-of-office periods: redirects urgent messages and gives an organised catch-up on return
SaaS
TeamSpeak
Team Chat
Voice communication software for gaming teams, communities and businesses
SaaS