klaussilveira/neo4j-ogm-bundle
Symfony bundle integrating the Neo4j PHP OGM, letting you map PHP entities to graph nodes, use repositories, and wire entity managers through Symfony's DI container. Includes annotation/attribute mapping and configuration for Neo4j connections.
Consider it when:
Look elsewhere when:
For executives (one paragraph): This is a small, MIT-licensed glue package that lets a Symfony application save PHP objects into Neo4j without hand-writing graph queries. It does not change our data strategy and it does not create vendor lock-in — it either accelerates a time-boxed experiment or bridges an existing legacy service. Its strategic value is low by design, and its maintenance risk is real: tiny community, single maintainer, and a Symfony2-era target. Recommendation: fund it only as a spike accelerant or a known legacy dependency with a scheduled exit, never as the foundation for new platform investment.
For engineering (the ask): Use it behind an interface. Wrap the OGM in a repository abstraction so replacing it with the official Neo4j driver is a bounded refactor rather than a rewrite. Pin versions, vendor the source if the spike graduates, and keep annotations out of domain code that must outlive the experiment. Timebox the spike and define the exit criteria up front: time-to-first-query, Cypher lines eliminated, and coupling introduced.
Decision metrics to bring back: engineer-days saved vs. estimated, volume of hand-written Cypher avoided, number of files touching OGM annotations (the blast radius of removal), and any Neo4j server-version constraints the OGM imposes.
How can I help you explore Laravel packages today?