PHPackages                             calcinai/phpi-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. calcinai/phpi-websocket

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

calcinai/phpi-websocket
=======================

Scaffolding for Websocket server using Ratchet &amp; PHPi

v0.1.2(8y ago)112262[1 issues](https://github.com/calcinai/phpi-websocket/issues)MITPHP

Since Jul 8Pushed 8y ago5 watchersCompare

[ Source](https://github.com/calcinai/phpi-websocket)[ Packagist](https://packagist.org/packages/calcinai/phpi-websocket)[ RSS](/packages/calcinai-phpi-websocket/feed)WikiDiscussions master Synced yesterday

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

phpi-websocket
==============

[](#phpi-websocket)

Scaffolding and demo for interacting with [phpi](https://github.com/calcinai/phpi) via websockets.

This should be enough to get started with a WS server and client. The included demo will let you monitor the pin headers, select alternate functions and change pin levels.

Instalation
-----------

[](#instalation)

Installation should be done using composer as there are a few dependencies (especially for ratchet - sorry about this but they are all just tiny symphony components).

If you don't have composer already:

`$ curl -sS https://getcomposer.org/installer | php`

Then install

`$ ./composer.phar create-project calcinai/phpi-websocket`

Alternatively, you can download the current release with all its dependencies from the releases page.

Usage
-----

[](#usage)

You can test the server by running

`php examples/server.php`

This will run a simple HTTP &amp; WebSocket server on port 9999. If the hostname of the pi is not the default (raspberrypi.local), you'll need to set it to something that can be accessed in `server.php`

All going well, you should be able to access the example at  and see something like this:

[![Screenshot](/../screenshots/phpi-websocket-pi3.png/?raw=true)](/../screenshots/phpi-websocket-pi3.png/?raw=true)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

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

Total

3

Last Release

3164d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2415868?v=4)[Michael Calcinai](/maintainers/calcinai)[@calcinai](https://github.com/calcinai)

---

Top Contributors

[![calcinai](https://avatars.githubusercontent.com/u/2415868?v=4)](https://github.com/calcinai "calcinai (18 commits)")

---

Tags

demophpphpiraspberry-piratchetwebsocketwebsocketGPIOraspberrypirpi

### Embed Badge

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

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

###  Alternatives

[ratchet/pawl

Asynchronous WebSocket client

6169.6M234](/packages/ratchet-pawl)[gos/web-socket-bundle

Symfony Web Socket Bundle

6102.2M8](/packages/gos-web-socket-bundle)[piphp/gpio

A library for accessing the GPIO pins on a Raspberry Pi

4295.9k2](/packages/piphp-gpio)[consik/yii2-websocket

Yii2 websocket server component

9277.6k2](/packages/consik-yii2-websocket)[takielias/codeigniter4-websocket

Websocket using Ratchet Websocket technology for CodeIgniter 4

883.3k](/packages/takielias-codeigniter4-websocket)[takielias/codeigniter-websocket

CodeIgniter Websocket using Ratchet Websocket technology. Inspired by https://github.com/romainrg/ratchet\_client

609.3k](/packages/takielias-codeigniter-websocket)

PHPackages © 2026

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