Download the PHP package hisorange/posix-rpc without Composer
On this page you can find all versions of the php package hisorange/posix-rpc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hisorange/posix-rpc
More information about hisorange/posix-rpc
Files in hisorange/posix-rpc
Package posix-rpc
Short Description Easy to use RPC library written in PHP for messaging through Posix queues.
License MIT
Informations about the package posix-rpc
PosixRPC for PHP by hisorange
Easy to use library to handle the IPC (Inter Process Communication) for You! It provides a messaging interface for publish / subscribe pattern, and also supports safe RPC (Remote Procedure Calls). That is not all! With an intuitive syntax You can call handlers synchronously or asynchronously with a non-blocking transport layer.
But wait, isn't Posix queues are small and slow?! Nope! This library can push gigabyte sized messages through the queue, and can easily reach 30k messages per second ^.^
Let's get started!
How to install
Yep, it's ready to be used by You! ^.^
How to use:
No need for big setup, just initialize a node with a unique name:
Async / Sync calls
By default every message sent async, and You could pool the transport for messages. But if You wana sequence a logic and Your process can block execution while waiting for a message, then You can use the await call, this will pool the transport until the response is arrived.
Async syntax
Fluent calls
To make the usage more programer friendly, the package supports fluent syntax.
All versions of posix-rpc with dependencies
monolog/monolog Version ^2.0
evenement/evenement Version ^3.0 || ^2.0
rybakit/msgpack Version ^0.7.0