PHP code example of erasys / dnode-php-sync-client

1. Go to this page and download the library: Download erasys/dnode-php-sync-client 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/ */

    

erasys / dnode-php-sync-client example snippets



e = new \DnodeSyncClient\Dnode();
$connection = $dnode->connect('localhost', 8080);
$response = $connection->call('echo', array('Hello, world!'));
var_dump($response);

array(2) {
  [0] =>
  NULL
  [1] =>
  string(13) "Hello, world!"
}