juwai/laravel-zerorpc
laravel-zerorpc
This package provides an easy way of connecting to zerorpc from a Laravel application. It uses the PHP zerorpc client.
Installation
-
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.
Usage
$client = ZeroRPC::get('service_one', '1.0');
$response = $client->service_function($param1, $param2);
Connection monitor
If you installed Debugbar the RPC connection information shows on Debugbar panels.
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
644,549,754
9,698
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
423,477,751
607
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
403,217,078
4,664
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.0.5 | >=5.4.0 | MIT | ||
| 1.0.4 | >=5.4.0 | MIT | ||
| 1.0.3 | >=5.4.0 | MIT | ||
| 1.0.2 | >=5.4.0 | >=5.1.0 | MIT | |
| 1.0.1 | >=5.4.0 | >=5.1.0 | MIT | |
| 1.0.0 | >=5.4.0 | >=5.1.0 | MIT |