Get Started What is a GraphDB? GraphDB vs RDBMS GraphDB vs NOSQL Language Drivers Cypher Cypher Basics Build a Recommendation Engine Cypher Refcard Data Modeling Graph Data Modeling Guidelines Working with Data Neo4j Browser Visualization Importing Data into Neo4j Graph… Learn More »

Goals
If you are a PHP developer, this guide provides an overview of options for connecting to Neo4j. While this guide is not comprehensive it will introduce the different drivers and link to the relevant resources.
Prerequisites
You should be familiar with graph database concepts and the property graph model. You should have installed Neo4j and made yourself familiar with our Cypher Query language.
Intermediate

Neo4j for PHP Developers

php 2

Drivers for the different PHP stacks enable you to use Neo4j from your familiar environment.

There’s a number of of ways to access Neo4j from PHP listed below.

Members of the PHP community have invested a lot of time and love to develop all tohese drivers, so please if you use them provide feedback to the authors.

The Example Project

You can find out more about our example projects for many different languages here, you can also access it via the GitHub repository for the Neo4j developer resources. Feel free to check them out.

It is a small one page webapp for our movies database. The front-end is the same for all drivers, just the backends show you how to connect to Neo4j from the different languages and drivers.

Neo4jPHP

Neo4jPHP provides an API that is both intuitive and flexible, and it takes advantage of ‘under-the -hood’ performance enhancements, such as caching and lazy-loading.

Other Drivers

neo4j-pdo

This is a PHP Data Objects driver for the Neo4j graph database, it allows you to connect to a Neo4j server from PHP using the standard PDO API. The project currently only implements a “vanilla” PHP implementation, which means you need to use a special constructor to create your PDO connection. PHP extensions to register the driver with PDO in HHVM and Zend VM are planned future work

PHP Cypher

A PHP adapter for Neo4j ReST API cypher endpoint. PHP Cypher aims to take the pain out of sending cypher query to Neo4j server. I believe that cypher will be a major part of Neo4j in near future. In short, this library focus solely on sending query to Neo4j database. For those looking for adapter on all the Neo4j ReST API can try this great library.

NeoEloquent

Neo4j Graph Eloquent Driver for Laravel 4

Neo4Laravel

A Neo4j Laravel 4.1 OGM Provider.