Zoho CloudSQL Client
A simple interface for using Zoho's CloudSQL API, (*1)
Installation
Installation is conveniently provided via Composer., (*2)
To get started, install composer in your project:, (*3)
$ curl -s https://getcomposer.org/installer | php
Next, add a composer.json file containing the following:, (*4)
}
"require": {
"zoho/cloudsql-client": "dev-master"
}
}
Finally, install!, (*5)
$ php composer.phar install
Usage
Using the Query class is easy:, (*6)
``` php
<?php
require_once 'Zoho_CloudDb_Query.php';, (*7)
try {
$query = new Zoho_CloudDb_Query();
$result = $query->setDb('your_db_table')
->setQuery('SELECT "column1" from "employee_id_table" where "column1" = 1234')
->run();
print_r(json_decode($result));
} catch (Exception $e) {
echo $e->getMessage();
}, (*8)
```, (*9)
License
MIT, (*10)