2017 © Pedro Peláez
 

library neo4jphp

Wrapper for the Neo4j graph database REST interface

image

heydavid713/neo4jphp

Wrapper for the Neo4j graph database REST interface

  • Tuesday, March 29, 2016
  • by heydavid713
  • Repository
  • 1 Watchers
  • 6 Stars
  • 30,738 Installations
  • PHP
  • 6 Dependents
  • 0 Suggesters
  • 142 Forks
  • 0 Open issues
  • 5 Versions
  • 11 % Grown

The README.md

Neo4jPHP

Author: Josh Adell josh.adell@gmail.com
Copyright (c) 2011-2012, (*1)

PHP Wrapper for the Neo4j graph database REST interface. The latest version of the original project was apparently abandoned. This fork was made to make this library compatible with PHP 7., (*2)

In-depth documentation and examples: http://github.com/jadell/neo4jphp/wiki, (*3)

API documentation: http://jadell.github.com/neo4jphp, (*4)

Install

Using Composer

  1. From the command line composer require "heydavid713/neo4jphp" "dev-master"
  2. In your PHP script require("vendor/autoload.php");

Connection Test

Create a script named neo4jphp_connect_test.php:, (*5)

    <?php
    require('vendor/autoload.php');

    $client = new Everyman\Neo4j\Client('localhost', 7474);
    print_r($client->getServerInfo());

Change localhost or 7474 to the host name and port of your Neo4j instance., (*6)

Execute the script:, (*7)

> php neo4jphp_connect_test.php

If you see your server's information, then you have successfully connected!, (*8)

Get Started

Full documentation on all the features of Neo4jPHP is available on the wiki: https://github.com/jadell/neo4jphp/wiki, (*9)

Contributions

http://github.com/jadell/neo4jphp/graphs/contributors, (*10)

All contributions are welcome! If you wish to contribute, please read the following guidelines:, (*11)

  • Before implementing new features, open an issue describing the feature.
  • Include unit tests for any bug fixes or new features.
  • Include only one bug fix or new feature per pull request.
  • Make sure all unit tests run before submitting a pull request.
  • Follow the coding style of the existing code: tabs for indentation, class/method braces on newlines, spaces after commas, etc.
  • Contributing code means that you agree that any contributed code, documentation, or other artifacts may be released under the same license as the rest of the library.

Quick Contributor Setup

Install the developer tools:, (*12)

> composer install --dev

After making your changes, run the unit tests and code style checker:, (*13)

> vendor/bin/phing ci

Run only unit tests:, (*14)

> vendor/bin/phing test

Run only style checker:, (*15)

> vendor/bin/phing cs

Pull requests will not be accepted unless all tests pass and all code meets the existing style guidelines., (*16)

Special Thanks

Changes

0.1.1 * PHP 7 compatibility., (*17)

0.1.0, (*18)

  • Cypher and Gremlin results handle nested arrays of nodes/relationships
  • Batch request with no operations succeeds
  • Delete index where index does not exist succeeds

0.0.7-beta, (*19)

  • Retrieve reference node in one operation
  • Find and return only the first matching relationship
  • Optionally use HTTPS and basic authentication
  • Keep index configuration when retrieved from server
  • Add Memcache caching plugin
  • Do not allow use if cUrl is not detected
  • PHAR is uncompressed by default

0.0.6-beta, (*20)

  • Create full-text indexes; easier instantiation of common index types
  • Client can be initialized with a string and port instead of a Transport object
  • Setting a null property has the same effect as removing the property
  • Handle scalar values from Gremlin scripts properly
  • Cypher and Gremlin queries can take an array of named parameters
  • Cypher no longer uses positional parameters
  • Use server info to determine Cypher plugin endpoint

0.0.5-beta, (*21)

  • Open a batch on the client to apply to all subsequent data manipulation calls
  • Batch operations correctly set and update locally cached entities
  • Method chaining on node and relationship save, load and delete
  • Instantiate new nodes and relationships from the client
  • Change to cache initialization; new EntityCache object

0.0.4-beta, (*22)

  • Client::getServerInfo() retrieves server information and connection test
  • Add to index brought up to Neo4j server 1.5 specification
  • Return paths from Cypher queries
  • Properly encode URL entities
  • Connection and transport errors throw exceptions
  • Fix "unable to connect" bug from returning false positive

The Versions

29/03 2016

dev-experimental

dev-experimental http://github.com/jadell/neo4jphp/wiki

Wrapper for the Neo4j graph database REST interface

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

database graph neo4j

30/12 2015

dev-master

9999999-dev http://github.com/jadell/neo4jphp/wiki

Wrapper for the Neo4j graph database REST interface

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

database graph neo4j

30/12 2015

0.1.2

0.1.2.0 http://github.com/jadell/neo4jphp/wiki

Wrapper for the Neo4j graph database REST interface

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

database graph neo4j

30/12 2015

0.1.1

0.1.1.0 http://github.com/jadell/neo4jphp/wiki

Wrapper for the Neo4j graph database REST interface

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

The Development Requires

database graph neo4j

20/11 2012

dev-config

dev-config http://github.com/jadell/neo4jphp/wiki

Wrapper for the Neo4j graph database REST interface

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

database graph neo4j