PHP code example of asimlqt / php-cassandra-client
1. Go to this page and download the library: Download asimlqt/php-cassandra-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/ */
asimlqt / php-cassandra-client example snippets
$connection = new Cassandra\Cql\Connection("127.0.0.1:9042", "mykeyspace");
$query = "select * from mytable";
$result = $connection->query($query);
foreach($result as $row) {
print_r($row);
}
json
{
"simlqt/php-cassandra-client": "0.2.*"
}
}
curl -sS https://getcomposer.org/installer | php
php composer.phar install