PHP code example of venusian-voyager / graph
1. Go to this page and download the library: Download venusian-voyager/graph 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/ */
venusian-voyager / graph example snippets
use Voyager\Graph\Instrument\Model;
class Person extends Model
{
protected $table = 'Person';
}
cypher_run('CREATE (n:Person {id: $id, name: $name})', [
'id' => 'p1',
'name' => 'Ada',
]);
$records = cypher('MATCH (n:Person {id: $id}) RETURN n', ['id' => 'p1']);