PHP code example of lvht / msgpack-rpc

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

    

lvht / msgpack-rpc example snippets

bash
➜  echo '[0,1,"echo",["hello"]]'|php example/echo.php
[1,1,null,"hello"]