PHPackages                             anders/php-chat - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. anders/php-chat

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

anders/php-chat
===============

 A multi-user multi-room ratchet server

0.2.2(9y ago)2361MITPHPPHP &gt;=5.4.0

Since Jul 8Pushed 9y agoCompare

[ Source](https://github.com/oskonnikov/php-chat)[ Packagist](https://packagist.org/packages/anders/php-chat)[ Docs](https://github.com/pmill/php-chat)[ RSS](/packages/anders-php-chat/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (3)Versions (4)Used By (0)

anders/php-chat
===============

[](#andersphp-chat)

[![Build Status](https://camo.githubusercontent.com/3f064ce4500a1ae1439057bbd73a8ae70ce717868336c2acbc575cebffaed132/68747470733a2f2f7472617669732d63692e6f72672f6f736b6f6e6e696b6f762f7068702d636861742e7376673f6272616e63683d6d6173746572)](http://travis-ci.org/oskonnikov/php-chat)

Introduction
------------

[](#introduction)

A multi-user multi-room ratchet server.

Requirements
------------

[](#requirements)

This library package requires PHP 5.4 or later.

Installation
------------

[](#installation)

### Installing via Composer

[](#installing-via-composer)

The recommended way to install php-chat is through [Composer](http://getcomposer.org).

```
# Install Composer
curl -sS https://getcomposer.org/installer | php
```

Next, run the Composer command to install the latest version of php-chat:

```
composer.phar require anders/php-chat
```

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

Usage
-----

[](#usage)

An example is provided in the example/ directory. Start the server with the command:

```
php example/server.php

```

An barebones example HTML client interface is located at example/client.html. You will need to update the chatUrl variable in example/chat.js with the host name (or ip address) of the server you ran the previous command on.

```
var chatUrl = 'ws://your-host-name:9911';

```

A prettier React and Semantic UI client interface is located at [pmill/react-chat](https://github.com/pmill/react-chat).

Version History
---------------

[](#version-history)

0.2.1 (27/07/2017)

- Added Avatar variables and functions

0.2.0 (09/07/2015)

- Separated server and output into separate classes
- Added user defined message logging

0.1.0 (08/07/2015)

- First public release of php-chat

Copyright
---------

[](#copyright)

php-chat Copyright (c) 2015 pmill () All rights reserved.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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 ~310 days

Total

3

Last Release

3391d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ac71c65d6b053239764bc36a5578232e89e3106f49435628cef5114ad29521a7?d=identicon)[anders2014](/maintainers/anders2014)

---

Top Contributors

[![pmill](https://avatars.githubusercontent.com/u/3912365?v=4)](https://github.com/pmill "pmill (9 commits)")

---

Tags

phpRatchetchatweb socket

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/anders-php-chat/health.svg)

```
[![Health](https://phpackages.com/badges/anders-php-chat/health.svg)](https://phpackages.com/packages/anders-php-chat)
```

PHPackages © 2026

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