PHPackages                             djfm/socket-rpc - 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. [API Development](/categories/api)
4. /
5. djfm/socket-rpc

ActiveLibrary[API Development](/categories/api)

djfm/socket-rpc
===============

1.0.0(11y ago)01231PHP

Since Feb 10Pushed 11y ago1 watchersCompare

[ Source](https://github.com/djfm/SocketRPC)[ Packagist](https://packagist.org/packages/djfm/socket-rpc)[ RSS](/packages/djfm-socket-rpc/feed)WikiDiscussions master Synced 1mo ago

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

SocketRPC
=========

[](#socketrpc)

SocketRPC offers a convenient way to share structured data between a CLI php server and multiple clients. The server is async, inspired by the great work at [reactphp](https://github.com/reactphp).

Think HTTP, without the structure. It's convenient. No POST, no GET, just JSON data and a notion of whether the client wants a reply or not. The rest of the protocol is for you to define at your leisure.

[![Build Status](https://camo.githubusercontent.com/d78c692c91f559960590b8f8bf89b7c1986c399b75653b49df69742c4b3f1985/68747470733a2f2f7472617669732d63692e6f72672f646a666d2f536f636b65745250432e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/djfm/SocketRPC)

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

[](#installation)

This is on packagist, just add `"djfm/socket-rpc": "dev-master"` to your composer.json.

Disclosure
----------

[](#disclosure)

This is an early version, don't use it for anything too serious. I needed some cross platform way to implement functionality like that of `msg_queue` for IPC communication in PHP, so I made this thing.

Examples
--------

[](#examples)

Below is an example server:

```
