Search by

Neo4j graph driver and Instrument models for Venusian (companion to voyager/database).

Package info

github.com/venusian-voyager/graph

pkg:composer/venusian-voyager/graph

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main / 0.8.x-dev 2026-09-18 04:46 UTC

This package is auto-updated.

Last update: 2026-09-18 05:03:28 UTC


README

Neo4j companion to voyager/database. Register Voyager\Graph\GraphServiceProvider and add a database.connections.neo4j entry (publish config/neo4j.php with --tag=voyager-graph-config).

This package is opt-in. It is not listed in DefaultProviders.

Requirements

  • PHP ^8.4|^8.5
  • voyager/database, voyager/contracts, voyager/nuts-and-bolts ^0.8.0
  • laudis/neo4j-php-client ^3.3 to open Bolt connections

Usage

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']);

Generate a model with php computer make:graph-model Person --label=Person.