Skip to content

Instantly share code, notes, and snippets.

@bigethan
Created February 6, 2012 18:46
Show Gist options
  • Save bigethan/1754014 to your computer and use it in GitHub Desktop.
Save bigethan/1754014 to your computer and use it in GitHub Desktop.
Use Neo4jPHP with Symfony2

Grab the Everyman folder from https://github.com/jadell/neo4jphp/tree/master/lib and put it into vendor/neo4j/lib

In /app/autoload.php in the $loader->registerNamespaces method, add :

'Everyman'           => __DIR__.'/../vendor/neo4j/lib',

to the array argument.

Then you can call the Everyman/Neo4j classes with:

$neo = new \Everyman\Neo4j\Client();

or

use Everyman\Neo4j;
...
$neo = new Neo4j\Client();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment