Neo4j Console Client
Simple PHP Client for creating Neo4j console setups (see http://console.neo4j.org), (*1)
Usage
Installation
Via composer :, (*2)
composer require neoxygen/neo4j-console-client
Init Queries, Message and Console Query
You can add queries to setup the console, add a message to the user and a first query when the console load :, (*3)
require_once 'vendor/autoload.php';
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
Open the link and enjoy !, (*4)
, (*5)
Todo
[ ] Generation from files in Terminal, (*6)
Author
Christophe Willemsen : twitter | github, (*7)
License
Released under the MIT License, view the License file shipped with this library, (*8)