PHPackages                             niterain/neo4j-php-ogm - 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. niterain/neo4j-php-ogm

ActiveLibrary

niterain/neo4j-php-ogm
======================

Brings Neo4J PHP OGM to Laravel4

025PHP

Since Dec 12Pushed 12y ago1 watchersCompare

[ Source](https://github.com/niterain/Neo4jPhpOgm)[ Packagist](https://packagist.org/packages/niterain/neo4j-php-ogm)[ RSS](/packages/niterain-neo4j-php-ogm/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Allows you to use [Neo4j](http://www.neo4j.org) with [Laravel4](http://www.laravel.com)

Installation
============

[](#installation)

Add `niterain\Neo4jPhpOgm` as a requirement to composer.json:

```
{
    "require": {
        "niterain/neo4j-php-ogm": "dev-master"
    }
}
```

Update your packages with `composer update` or install with `composer install`.

Once Composer has installed or updated your packages you need to register Neo4jPhpOgm with Laravel. Open up app/config/app.php and find the providers key towards the bottom and add:

```
'Niterain\Neo4jPhpOgm\Neo4jPhpOgmServiceProvider',
```

Configuration
=============

[](#configuration)

Since I like having my config files in one directory, this library checks to see if the settings are in the database.php file in the app/config directory as one of the connections under the 'neo4j' key, but if there isn't one defined, it looks in its local config.php file.

Usage
=====

[](#usage)

You add your entities in an Entity folder, from there everything feels much like Doctrine2.

```
$em = App::make('entityManager');
$user = $em->getRepository('Entity\\User');
$user->add(array('firstName' => 'levi', 'lastName' => 'stanley'));
$em->persist($user);
$em->flush();
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed727cdb04f6db71ae379667cca7e7e7d459d79d255eedd1e0caccb7a01dea54?d=identicon)[niterain](/maintainers/niterain)

---

Top Contributors

[![niterain](https://avatars.githubusercontent.com/u/16836?v=4)](https://github.com/niterain "niterain (6 commits)")

### Embed Badge

![Health badge](/badges/niterain-neo4j-php-ogm/health.svg)

```
[![Health](https://phpackages.com/badges/niterain-neo4j-php-ogm/health.svg)](https://phpackages.com/packages/niterain-neo4j-php-ogm)
```

PHPackages © 2026

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