PHP code example of neoxygen / graphenedb-client

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

    

neoxygen / graphenedb-client example snippets




use Neoxygen\GrapheneDBClient\GrapheneDBClient;

$client = new GrapheneDBClient('[email protected]', 'SuPeRp@sSwOrD');

$myNewDB = $client->createDatabase('test');

$client->getVersions();

$databases = $client->getDatabases();

$db = $client->getDatabase('test');

$db = $client->getDatabase('test');
$client->deleteDatabase($db->getId());

$client->deleteAllDatabases();

$db = $client->getDatabase('test');

echo $db->getId(); //42354265476534
echo $db->getName(); // test
echo $db->getNodesLimit(); // 1000
echo $db->getDbLocation(); // us-east-1-New York