juwai/laravel-zerorpc

Laravel package for zerorpc client
24,503
Install
composer require juwai/laravel-zerorpc
Latest Version:1.0.5
PHP:>=5.4.0
Older releases:5
License:MIT
Last Updated:Feb 1, 2021
Links: GitHub  ·  Packagist
Maintainer: tjoelsson

laravel-zerorpc

This package provides an easy way of connecting to zerorpc from a Laravel application. It uses the PHP zerorpc client.

Installation

  1. 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,
    ],
    
  2. Publish config file:

    $ php artisan vendor:publish
    
  3. 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/framework

The Laravel Framework.

598,760,099 34,966
laravel/tinker

Powerful REPL for the Laravel framework.

507,193,856 7,441
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