PHP code example of versionable / ration

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

    

versionable / ration example snippets


    $address = new TCP('10.0.0.1', 6379);
    $connection = new Connection($address);
    $client = new Client($connection);

    $request = new Request(new PingCommand());
    $response = $client->send($request);

    $address = new TCP('10.0.0.1', 6379);
    $connection = new Connection($address);
    $client = new Client($connection);

    $request = new Request(new SetCommand('key', 'value'));
    $client->send($request);

    $request = new Request(new GetCommand('key'));
    $response = $client->send($response);