https://github.com/ovr/rpc-php
https://github.com/ovr/rpc-php
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ovr/rpc-php
- Owner: ovr
- License: mit
- Created: 2015-05-12T14:51:41.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-12T14:52:01.000Z (over 10 years ago)
- Last Synced: 2025-01-13T09:08:20.506Z (11 months ago)
- Language: PHP
- Size: 95.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RpcPhp
#### Client
```php
$redisClient = new \Redis();
$rpc = new \RpcPhp\Client($redisClient);
$queue = 'Youtube';
$remoteFunction = 'fetchVideos';
$parameters = ['UCH8zwr3rJOcgCApR_5z31cw']
$message = new \Rpc\Message($queue, $remoteFunction, $parameters);
// sync request
$response = $rpc->execute($message)
// or async request
$rpc->push($message);
// or pub/sub request
$rpc->publish($message)
```