| Package Data | |
|---|---|
| Maintainer Username: | tjoelsson | 
| Maintainer Contact: | engineering@juwai.com (Juwai Limited) | 
| Package Create Date: | 2016-09-26 | 
| Package Last Update: | 2021-02-01 | 
| Home Page: | |
| Language: | PHP | 
| License: | MIT | 
| Last Refreshed: | 2025-10-28 03:00:22 | 
| Package Statistics | |
|---|---|
| Total Downloads: | 23,953 | 
| Monthly Downloads: | 7 | 
| Daily Downloads: | 0 | 
| Total Stars: | 1 | 
| Total Watchers: | 8 | 
| Total Forks: | 7 | 
| Total Open Issues: | 0 | 
This package provides an easy way of connecting to zerorpc from a Laravel application. It uses the PHP zerorpc client.
Add facade and providers to config/app.php
'aliases' => [
    ...
    'ZeroRPC' => Juwai\LaravelZeroRPC\Facades\ZeroRPC::class,
],
'providers' => [
    ...
    Juwai\LaravelZeroRPC\Providers\ZeroRPCContextProvider::class,
    Juwai\LaravelZeroRPC\Providers\ZeroRPCClientProvider::class,
],
Publish config file:
$ php artisan vendor:publish
Add real service configuration to the published config file
config/zerorpc.php.
$client = ZeroRPC::get('service_one', '1.0');
$response = $client->service_function($param1, $param2);
If you installed Debugbar the RPC connection information shows on Debugbar panels.