| 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-11-27 03:00:21 |
| Package Statistics | |
|---|---|
| Total Downloads: | 23,989 |
| Monthly Downloads: | 36 |
| Daily Downloads: | 9 |
| 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.