PHPackages                             pmill/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. pmill/php-chat

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

pmill/php-chat
==============

 A multi-user multi-room ratchet server

0.2.0(10y ago)2873316[2 issues](https://github.com/pmill/php-chat/issues)[1 PRs](https://github.com/pmill/php-chat/pulls)MITPHPPHP &gt;=5.4.0

Since Jul 8Pushed 7y ago9 watchersCompare

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

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

php-chat
========

[](#php-chat)

[![Build Status](https://camo.githubusercontent.com/8ef6664d8e8555678d91ea97f1bc414f1a21d2ce59c3fa0a21102c33189ec771/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f706d696c6c2f7068702d636861742e7376673f6272616e63683d6d6173746572)](http://travis-ci.org/pmill/php-chat) [![Code Climate](https://camo.githubusercontent.com/0727c025ef4b3d01be1ec07434a9147e897184d7771c302339bfb2fe60b6b72a/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f706d696c6c2f7068702d636861742f6261646765732f6770612e737667)](https://codeclimate.com/github/pmill/php-chat) [![Test Coverage](https://camo.githubusercontent.com/2272d732ae6e29e0709b93a525d31c10c4cc298882f3bf38c1646485b05c614f/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f706d696c6c2f7068702d636861742f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/pmill/php-chat/coverage) [![Test Coverage](https://camo.githubusercontent.com/9d4160549e45b28d71874a566b7daa623a0692c834bec7009f5c14f449a82261/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706d696c6c2f7068702d636861742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/pmill/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 pmill/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.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

29

—

LowBetter than 59% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

3968d ago

### Community

Maintainers

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

---

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/pmill-php-chat/health.svg)

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

PHPackages © 2026

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