venusian-voyager / graph
Neo4j graph driver and Instrument models for Venusian (companion to voyager/database).
dev-main / 0.8.x-dev
2026-09-18 04:46 UTC
Requires
- php: ^8.4|^8.5
- voyager/contracts: ^0.8.0
- voyager/database: ^0.8.0
- voyager/nuts-and-bolts: ^0.8.0
Requires (Dev)
None
Suggests
- laudis/neo4j-php-client: Required to open Neo4j connections via Neo4jConnector (^3.3).
- voyager/console: Required to use the make:graph-model command (^0.8.0).
Provides
None
Conflicts
None
Replaces
None
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.0laudis/neo4j-php-client^3.3to 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.