PHPackages                             obray/socket-server - 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. obray/socket-server

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

obray/socket-server
===================

Generic socket server with non-blocking reads and writes.

v1.1.0(4w ago)01.9k1MITPHPPHP &gt;=7.1

Since Nov 30Pushed 4w ago1 watchersCompare

[ Source](https://github.com/nateobray/SocketServer)[ Packagist](https://packagist.org/packages/obray/socket-server)[ RSS](/packages/obray-socket-server/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)DependenciesVersions (21)Used By (1)

obray/socket-server
===================

[](#obraysocket-server)

Small PHP socket server library with non-blocking reads and queued writes.

This package is intentionally low level. It accepts socket connections, invokes a handler contract, and exposes a small timer and logging surface for libraries or applications built on top of it. Version 1.x is intentionally single-process and event-loop based.

Install
-------

[](#install)

```
composer require obray/socket-server
```

Echo Server
-----------

[](#echo-server)

```
