PHPackages                             utopia-php/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. [Framework](/categories/framework)
4. /
5. utopia-php/websocket

ActiveLibrary[Framework](/categories/framework)

utopia-php/websocket
====================

A simple abstraction for WebSocket servers.

1.0.0(3mo ago)12216.1k↓21.4%11[1 PRs](https://github.com/utopia-php/websocket/pulls)1MITPHPPHP &gt;=8.0

Since Jul 9Pushed 2mo ago6 watchersCompare

[ Source](https://github.com/utopia-php/websocket)[ Packagist](https://packagist.org/packages/utopia-php/websocket)[ RSS](/packages/utopia-php-websocket/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (6)Versions (17)Used By (1)

Utopia WebSocket
================

[](#utopia-websocket)

[![Build Status](https://camo.githubusercontent.com/f42b449e9ed9cd32dae98f2e38b3bf419293c3bf1cbdd7647b3f20faf5ca04d2/68747470733a2f2f7472617669732d63692e636f6d2f75746f7069612d7068702f73797374656d2e7376673f6272616e63683d6d61696e)](https://travis-ci.com/utopia-php/websocket)[![Total Downloads](https://camo.githubusercontent.com/4593fba96990ed6d7a25f2e93fe2af3bbf52ee9f13004af63c848820ac89b4f8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f75746f7069612d7068702f776562736f636b65742e737667)](https://camo.githubusercontent.com/4593fba96990ed6d7a25f2e93fe2af3bbf52ee9f13004af63c848820ac89b4f8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f75746f7069612d7068702f776562736f636b65742e737667)[![Discord](https://camo.githubusercontent.com/6e418910df1b6eb524c6cbd88dbaf5a5aa294316eeadcd963e11262a319f6321/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f3536343136303733303834353135313234343f6c6162656c3d646973636f7264)](https://appwrite.io/discord)

Utopia WebSocket is a simple and lite abstraction layer around a WebSocket server. This library is aiming to be as simple and easy to learn and use. This library is maintained by the [Appwrite team](https://appwrite.io).

Although this library is part of the [Utopia Framework](https://github.com/utopia-php/framework) project it is dependency free and can be used as standalone with any other PHP project or framework.

Getting Started
---------------

[](#getting-started)

Install using composer:

```
composer require utopia-php/websocket
```

Init in your application:

```
