PHPackages                             priyolahiri/neo4jphp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. priyolahiri/neo4jphp

ActiveLibrary[Database &amp; ORM](/categories/database)

priyolahiri/neo4jphp
====================

Wrapper for the Neo4j graph database REST interface

0.1.4(13y ago)012MITPHPPHP &gt;=5.3.0

Since Nov 20Pushed 13y ago1 watchersCompare

[ Source](https://github.com/priyolahiri/neo4jphp)[ Packagist](https://packagist.org/packages/priyolahiri/neo4jphp)[ Docs](http://github.com/jadell/neo4jphp/wiki)[ RSS](/packages/priyolahiri-neo4jphp/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (5)Used By (0)

Neo4jPHP
========

[](#neo4jphp)

Author: Josh Adell
Copyright (c) 2011-2012

PHP Wrapper for the Neo4j graph database REST interface

In-depth documentation and examples:

API documentation:

[![Build Status](https://camo.githubusercontent.com/0c7397d614d75e9e07a7adc3de5b4feb9cdb5fdef5c53067060d82282517548e/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6a6164656c6c2f6e656f346a7068702e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/jadell/neo4jphp)

Install
-------

[](#install)

### Using Composer

[](#using-composer)

1. From the command line `echo '{"require":{"everyman/neo4jphp":"dev-master"}}' > composer.json && composer install`
2. In your PHP script `require("vendor/autoload.php");`

### Using pre-packaged PHAR

[](#using-pre-packaged-phar)

1. Download latest PHAR from
2. In your PHP script `require("phar://neo4jphp.phar");`

Connection Test With PHAR
-------------------------

[](#connection-test-with-phar)

From the command line, execute the following:

```
> php neo4jphp.phar localhost

```

Change localhost to the host name of your Neo4j instance. Port defaults to 7474, or can be specified as the second parameter after the host name.

Execute the following to see more command line options:

```
> php neo4jphp.phar

```

Contributions
-------------

[](#contributions)

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

- 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.

Special thanks to:

- Jacob Hansson  - Cypher query support
- Nigel Small  - GEOFF import/export
    -

Changes
-------

[](#changes)

0.1.4

- Tagged for inclusion in project and composer.json updated

0.1.0

- 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

- 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

- 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

- 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

- 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

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

4813d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1254077?v=4)[Priyadarshi Lahiri](/maintainers/priyolahiri)[@priyolahiri](https://github.com/priyolahiri)

---

Top Contributors

[![jadell](https://avatars.githubusercontent.com/u/237266?v=4)](https://github.com/jadell "jadell (228 commits)")[![codingjoe](https://avatars.githubusercontent.com/u/1772890?v=4)](https://github.com/codingjoe "codingjoe (6 commits)")[![jakewins](https://avatars.githubusercontent.com/u/182752?v=4)](https://github.com/jakewins "jakewins (4 commits)")[![priyolahiri](https://avatars.githubusercontent.com/u/1254077?v=4)](https://github.com/priyolahiri "priyolahiri (3 commits)")[![lphuberdeau](https://avatars.githubusercontent.com/u/444229?v=4)](https://github.com/lphuberdeau "lphuberdeau (3 commits)")[![tinsley](https://avatars.githubusercontent.com/u/1353037?v=4)](https://github.com/tinsley "tinsley (2 commits)")[![rado-h](https://avatars.githubusercontent.com/u/1043717?v=4)](https://github.com/rado-h "rado-h (1 commits)")[![wwwdata](https://avatars.githubusercontent.com/u/818880?v=4)](https://github.com/wwwdata "wwwdata (1 commits)")

---

Tags

databaseneo4jgraph

### Embed Badge

![Health badge](/badges/priyolahiri-neo4jphp/health.svg)

```
[![Health](https://phpackages.com/badges/priyolahiri-neo4jphp/health.svg)](https://phpackages.com/packages/priyolahiri-neo4jphp)
```

###  Alternatives

[vinelab/neoeloquent

Laravel wrapper for the Neo4j graph database REST interface

65593.7k1](/packages/vinelab-neoeloquent)[stefanak-michal/bolt

PHP library to provide connectivity to graph database over TCP socket with Bolt specification

81713.4k10](/packages/stefanak-michal-bolt)[graphaware/neo4j-common

Common Utilities library for Neo4j

24879.4k24](/packages/graphaware-neo4j-common)[neo4j/neo4j-bundle

Symfony integration for Neo4j

8272.3k](/packages/neo4j-neo4j-bundle)[ulobby/neoeloquent

Laravel wrapper for the Neo4j graph database REST interface

4374.1k](/packages/ulobby-neoeloquent)[heydavid713/neo4jphp

Wrapper for the Neo4j graph database REST interface

12107.9k10](/packages/heydavid713-neo4jphp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
