/cypher

Connecting to Neo4j Cypher with PHP made easy

Primary LanguagePHPMIT LicenseMIT

#This package have been renamed and moved to here.

#Neo4j Cypher PHP Adapter Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Cypher is a PHP adapter for Neo4j ReST API cypher endpoint. 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.

For those that dont know, Neo4j is a graph database. More information about Neo4j can be found here and information for cypher can be found here. It also serve as a laravel 4 package and it is licensed under MIT so you can do whatever you want with it.

For more in-depth documentation and example, do visit project wiki.

##Requirement

  1. PHP 5.4 and above
  2. Neo4j 2.0 and above

##Features

  1. Send cypher to the server
  2. Send multiple cypher in single request
  3. Support cypher transaction
  4. Support native status code
  5. Double as Laravel 4 package

##Installation This library is available through composer. If you dont know how to use composer, a tutorial can be found here.

##Quickstart

$cypher = new Cypher;

$result = $cypher->statement(
	'CREATE (jeffrey:Person {information}) RETURN jeffrey.name AS name',
	array('information' => array(
		'name' => 'Jeffrey Jasmi',
		'born' => 1987
	))
)
->execute();

echo $result[0][0]['name']; // Jeffrey Jasmi

##Documentation For more in-depth documentation and example, do visit project wiki.

##Feedback If you have any feature request, bug report, proposal, comment, or anything related to this library. Do not hesitate to open a new issues.