PHP code example of juwai / laravel-zerorpc

1. Go to this page and download the library: Download juwai/laravel-zerorpc library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

juwai / laravel-zerorpc example snippets


    'aliases' => [
        ...
        'ZeroRPC' => Juwai\LaravelZeroRPC\Facades\ZeroRPC::class,
    ],
    

    'providers' => [
        ...
        Juwai\LaravelZeroRPC\Providers\ZeroRPCContextProvider::class,
        Juwai\LaravelZeroRPC\Providers\ZeroRPCClientProvider::class,
    ],
    

$client = ZeroRPC::get('service_one', '1.0');
$response = $client->service_function($param1, $param2);
bash
    $ php artisan vendor:publish