PHP code example of pixelfederation / vitess-php-pdo

1. Go to this page and download the library: Download pixelfederation/vitess-php-pdo 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/ */

    

pixelfederation / vitess-php-pdo example snippets


$pdo = new \VitessPdo\PDO("keyspace={$keyspace};host={$host};port={$port}");

$pdo = new \VitessPdo\PDO("vitess:cell={$cell};keyspace={$keyspace};host={$host};port={$port};vtctld_host={vtcrld_host};vtctld_port={vtctld_port}");
bash
composer