PHP code example of caylof / rpc

1. Go to this page and download the library: Download caylof/rpc 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/ */

    

caylof / rpc example snippets

shell
docker run -it --name eg-rpc --rm -v D:\code\github\php-rpc:/code -w /code caylof/php:8.2.4-cli-alpine /bin/sh

/code # composer install
/code # php ./examples/rpc_server.php start
shell
docker exec -it eg-rpc /bin/sh

/code # php ./examples/rpc_client.php