PHPackages                             morozovsk/websocket - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. morozovsk/websocket

ActiveLibrary[HTTP &amp; Networking](/categories/http)

morozovsk/websocket
===================

simple php websocket server with examples and demo: simple chat (single daemon) - http://sharoid.ru/chat.html , pro chat (master + worker) - http://sharoid.ru/chat2.html , simple game - http://sharoid.ru/game.html

4.2.2(9y ago)36417.3k72[5 issues](https://github.com/morozovsk/websocket/issues)[3 PRs](https://github.com/morozovsk/websocket/pulls)2MITPHPPHP &gt;=5.3.0

Since Aug 31Pushed 7y ago40 watchersCompare

[ Source](https://github.com/morozovsk/websocket)[ Packagist](https://packagist.org/packages/morozovsk/websocket)[ Docs](http://sharoid.ru/game.html)[ RSS](/packages/morozovsk-websocket/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)DependenciesVersions (11)Used By (2)

Simple websocket server on php that can handle 100000 connections or more.

"composer require morozovsk/websocket"

This library works, but I will not develop and support it because I will use
==================================================================================================================

[](#this-library-works-but-i-will-not-develop-and-support-it-because-i-will-use-httpsgithubcomwalkorworkerman)

Also I recomend
-------------------------------------------------------

[](#also-i-recomend-httpsgithubcomswooleswoole-src)

##### Features:

[](#features)

- server works with socket\_select, pecl/event or pecl/libevent.
- you can run multiple processes (one master and several workers or microservices architecture).
- integration with your framework.

##### Documentation

[](#documentation-httpsgithubcommorozovskwebsocketwiki)

##### Examples

[](#examples-httpsgithubcommorozovskwebsocket-examples)

- chat - simple chat (single daemon)
- chat2 - chat (master + worker)
- chat3 - chat (single daemon + script who can send personal message by clientId, userId or PHPSESSID)
- game - simple real time game
- game2 - real time game (port of node.js game: )

Run from console:

- start: "php index.php start" or "nohup php index.php start &amp;"
- stop: "php index.php stop"
- restart: "php index.php restart" or "nohup php index.php restart &amp;"

##### yii2-websocket

[](#yii2-websocket-httpsgithubcommorozovskyii2-websocket)

##### How it works (for russian speakers):

[](#how-it-works-for-russian-speakers)

-
-
-

##### Fork for Laravel 4:

[](#fork-for-laravel-4)

-

##### License

[](#license)

(The MIT License)

Copyright (c) 2014 Vladimir Goncharov

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~60 days

Recently: every ~134 days

Total

10

Last Release

3370d ago

Major Versions

2.0.0 → 3.0.02015-09-05

3.x-dev → 4.x-dev2015-09-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ea6433027f1bd3fd09910b81856e14edcb36493f8f6b176349be1578bc81447?d=identicon)[morozovsk](/maintainers/morozovsk)

---

Top Contributors

[![morozovsk](https://avatars.githubusercontent.com/u/1822063?v=4)](https://github.com/morozovsk "morozovsk (159 commits)")

---

Tags

gamephpwebsocketwebsocket-servereventlaravelserverwebsocketyiichatgamedemolibeventexamlesocket\_select

### Embed Badge

![Health badge](/badges/morozovsk-websocket/health.svg)

```
[![Health](https://phpackages.com/badges/morozovsk-websocket/health.svg)](https://phpackages.com/packages/morozovsk-websocket)
```

###  Alternatives

[morozovsk/yii2-websocket

simple php websocket server with examples and demo: simple chat (single daemon) - http://sharoid.ru/chat.html , pro chat (master + worker) - http://sharoid.ru/chat2.html , simple game - http://sharoid.ru/game.html

9414.8k](/packages/morozovsk-yii2-websocket)[morozovsk/websocket-examples

examples for simple php websocket server: simple chat (single daemon) - http://sharoid.ru/chat.html , pro chat (master + worker) - http://sharoid.ru/chat2.html , simple game - http://sharoid.ru/game.html

382.3k](/packages/morozovsk-websocket-examples)[hhxsv5/laravel-s

🚀 LaravelS is an out-of-the-box adapter between Laravel/Lumen and Swoole.

3.9k676.0k10](/packages/hhxsv5-laravel-s)[swow/swow

Coroutine-based multi-platform support engine with a focus on concurrent I/O

1.3k2.1M84](/packages/swow-swow)[basement-chat/basement-chat

Add a real-time chat widget to your Laravel application.

4983.9k](/packages/basement-chat-basement-chat)[voryx/websocketmiddleware

WebSocket Middleware for React

2669.2k3](/packages/voryx-websocketmiddleware)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
