Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

adibhanna's avatar

NeoEloquent - Laravel ORM for neo4j (GraphDB)

check this out guys! a great ORM for working with Graph DB, specifically Neo4J. you can use almost the exact syntax as Laravel's Eloquent.

http://vinelab.github.io/NeoEloquent/

0 likes
17 replies
wkolcz's avatar

I would love to see how to work with Neo4j using Laravel.

2 likes
pmall's avatar

Many thanks for this. I make local websites for biology labs and I'm very interested in neo4J. It's hard to wrap his head around graph database but it seems very interesting.

1 like
decebal2dac's avatar

Can anyone offer a reallife project example of laravel and neo4j ? I am really curious on what scale it's used.

decebal2dac's avatar

@AlnourAltegani i was hoping for a github repo or such at least, I also think that it has other applications more important than a social network

1 like
plusonedev's avatar

I'm actually using neo4j, or at least in the process of learning it, for a project where I have to track multi-level relationships between my users because of perks they receive based on their enrollment referrals. I was originally using mongodb but I'm hoping this will be more efficient when it comes to tree building.

mahmoudz's avatar

Hi all, I have been using the package mentioned by @adibhanna for over a year and it's so far the best solution to use Neo4j with Laravel.

2 likes
MohamadSleimanHaidar's avatar

@pmall The queues documentation specifies that we need to create a database table to hold the jobs. How does that translate over to nodes?

pmall's avatar

You cant use neo4j to manage the queue. Use something else like the beanstalkd driver.

1 like
ifpleti's avatar

Is this package available for Laravel 5.8? I've seen other solutions like ahsanabrar/laravel-neo4j, however, just using Cypher inside the framework is not enough, the way Eloquent represents the data through models and objects is amazing and I don't want to change the framework nor the language just because the main database of my project doesn't work as i'd like to. I'm also not familiar with older versions of the framework.

amichael's avatar

@ifpleti Sadly no. In fact, it usually takes over a year or two for the package maintainers to upgrade the package to the current version of Laravel -- the reason why I left Laravel and went Symfony route. Check out https://neo4j-php-ogm.readthedocs.io. Also, they don't plan to support the Neo4j bolt connection anytime soon either. I am about to start a new Neo4j API project and was revisiting NeoEloquent after years. The same issues seem to still exist. I don't think there is any active maintenance going on the project.

Please or to participate in this conversation.