PHPackages                             lrezek/neo4laravel - 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. lrezek/neo4laravel

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

lrezek/neo4laravel
==================

Hire voice OGM provider and facade for Laravel.

181612[1 PRs](https://github.com/lrezek/Neo4Laravel/pulls)PHP

Since May 27Pushed 8y ago3 watchersCompare

[ Source](https://github.com/lrezek/Neo4Laravel)[ Packagist](https://packagist.org/packages/lrezek/neo4laravel)[ RSS](/packages/lrezek-neo4laravel/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

About
=====

[](#about)

This is a service provider for Laravel 4.1 and 5 (thanks to [hiencreativ](https://github.com/hiencreativ)) that uses [Louis-Philippe Huberdeau's PHP OGM](https://github.com/lphuberdeau/Neo4j-PHP-OGM). It is based off of [Levi Stanley's Neo4jPhpOgm](https://github.com/niterain/Neo4jPhpOgm), but updated to work with Laravel 4.1 and 5.

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

[](#installation)

Add `lrezek/neo4laravel` as a requirement to `composer.json`:

```
{
    "require": {
       "lrezek/neo4laravel": "dev-master"
    }
}
```

You may need to add the package dependencies as well, depending on your minimum-stability setting:

```
{
    "require": {
       "everyman/neo4jphp":"dev-master",
       "hirevoice/neo4jphp-ogm":"dev-master"
    }
}
```

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

Once Composer has updated your packages, you'll need to tell Lavarel about the service provider. Add the following to the `providers` in `app/config/app.php`:

```
'LRezek\Neo4Laravel\Providers\Neo4LaravelServiceProvider',
```

And the facade to the `facades`:

```
'OGM' => 'LRezek\Neo4Laravel\Facades\Neo4LaravelFacade',
```

Note: You can change the name of the facade (`OGM`) to whatever you like.

Database Configuration
======================

[](#database-configuration)

The Neo4J database configuration is autoloaded from `app/config/database.php`. To add a Neo4J connection, simply add the following to the `connections` parameter:

```
'neo4j' => array(
            'transport' => 'curl',
            'host' => 'localhost',
            'port' => '7474',
            'debug' => true,
            'proxy_dir' => '/tmp',
            'cache_prefix' => 'neo4j',
            'meta_data_cache' => 'array',
            'annotation_reader' => null,
            'username' => null,
            'password' => null,
            'pathfinder_algorithm' => null,
            'pathfinder_maxdepth' => null
        )
```

You can also set the default connection as follows:

```
'default' => 'neo4j',
```

Usage
=====

[](#usage)

Once this set-up is complete, you can use entities and do queries as shown in [Louis-Philippe Huberdeau's Neo4J PHP OGM](https://github.com/lphuberdeau/Neo4j-PHP-OGM). To call functions in the entity manager, simply use the facade you defined above. For example:

```
OGM::flush()
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

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/c0f3ca2c31384c90a68edabe69abf18b109b6fd0c255eaf604fca04bb48d5eaf?d=identicon)[lrezek](/maintainers/lrezek)

---

Top Contributors

[![lrezek](https://avatars.githubusercontent.com/u/6645422?v=4)](https://github.com/lrezek "lrezek (47 commits)")

### Embed Badge

![Health badge](/badges/lrezek-neo4laravel/health.svg)

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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