I am the author of the neo4j PHP client library. We have recently released v2.0 which added lots of new features.
You can read about the client here: https://medium.com/neo4j/connect-to-neo4j-with-php-e10e24afedff or visit the repository here: https://github.com/neo4j-php/neo4j-php-client.
The client is inspired by the graphaware library which is deprecated. This client is built from the ground up and works with all versions of neo4j, cluster deployments and aura.
Any feedback or questions are welcome.
Hello @mzeinfeld ,
Your question has excellent timing. We are now finishing up a blog post about the subject.
In the meantime, I can give you an example:
You should have received credentials like this:
And should see something like this on the dashboard:
You can now simply create the client like this:
$client = ClientBuilder::create() ->withDriver( 'aura', 'neo4j+s://2c364be8.databases.neo4j.io', Authenticate::basic('neo4j', 'zFYIuuW8BBG4_GMJGlS7x384fO4vwjHFzYYHsJwFWNo') ) ->build();
The first parameter of
Clientbuilder::withDriver is the alias of the driver in case you have multiple drivers in the client. The second is the connection string and is of the form:
You can read more about the uri here: GitHub - neo4j-php/neo4j-php-client: Php client for neo4j database
The final parameter is the authentication logic. In this case a simple username and password.