PHP code example of neoxygen / neo4j-console-client
1. Go to this page and download the library: Download neoxygen/neo4j-console-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 / neo4j-console-client example snippets
use Neoxygen\ConsoleClient\Client;
$consoleClient = new Client();
$consoleClient
->addInitQuery('CREATE (p:Person)')
->addInitQuery('CREATE (c:Company)')
->addInitQuery('MERGE (p)-[:WORKS_AT]->(c);')
->addConsoleMessage('An awesome Neo4j console setup')
->createConsole();
$consoleUrl = $consoleClient->getShortLink();
// -> http://console.neo4j.org/r/8iijau