PHPackages                             kitlabs/neo4j-bundle - 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. kitlabs/neo4j-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

kitlabs/neo4j-bundle
====================

Symfony integration for Neo4j

10.4.2(2y ago)03MITPHPPHP &gt;=8.0

Since Feb 21Pushed 2y agoCompare

[ Source](https://github.com/kitlabs-cn/neo4j-symfony)[ Packagist](https://packagist.org/packages/kitlabs/neo4j-bundle)[ RSS](/packages/kitlabs-neo4j-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (16)Versions (2)Used By (0)

Neo4j Symfony Bundle
====================

[](#neo4j-symfony-bundle)

[![Latest Version](https://camo.githubusercontent.com/b7b6bbf0cac4f84b5c2b34ac5551cbd0674de3476523991ba4a67a86fc6f488d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6e656f346a2d636f6e747269622f6e656f346a2d73796d666f6e792e7376673f7374796c653d666c61742d737175617265)](https://github.com/neo4j-contrib/neo4j-symfony/releases)[![Build Status](https://camo.githubusercontent.com/4122a8d94c803dd55dcadf09ea6feaef4b26ad9f1a95df3913f17950b2289fdb/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6e656f346a2d636f6e747269622f6e656f346a2d73796d666f6e792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/neo4j-contrib/neo4j-symfony)[![Code Coverage](https://camo.githubusercontent.com/de00c9a86f5b2f7082af6635fb708200ef4002e9f68a199e233f0b70bb0f61e3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6e656f346a2d636f6e747269622f6e656f346a2d73796d666f6e792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/neo4j-contrib/neo4j-symfony)[![Quality Score](https://camo.githubusercontent.com/03c8a8e30e6e0b72eda4fd540eb9ed0f4a24925f277112789c3dc21c4104d312/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6e656f346a2d636f6e747269622f6e656f346a2d73796d666f6e792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/neo4j-contrib/neo4j-symfony)[![Total Downloads](https://camo.githubusercontent.com/c5334a9ad67a6958f8cec087af0e0fd933c651539a145974c0648eb39363144d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e656f346a2f6e656f346a2d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/neo4j/neo4j-bundle)

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

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require kitlabs/neo4j-bundle
```

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    \Neo4j\Neo4jBundle\Neo4jBundle::class => ['all' => true],
];
```

Documentation
-------------

[](#documentation)

The bundle is a convenient way of registering services. We register `Drivers` and one `Clients`. You will always have alias for the default services:

- neo4j.driver
- neo4j.client

### Minimal configuration

[](#minimal-configuration)

```
neo4j:
  drivers:
    default: ~
```

With the minimal configuration we have services named:

- neo4j.driver.default
- neo4j.client

### Full configuration example

[](#full-configuration-example)

This example configures the client to contain two instances.

```
neo4j:
  profiling: true
  default_driver: high-availability
  connections:
    - alias: high-availability
      dsn: 'neo4j://core1.mydomain.com:7687'
      authentication:
        type: 'oidc'
        token: '%neo4j.openconnect-id-token%'
      priority: 1
    # Overriding the alias makes it so that there is a backup server to use in case
    # the routing table cannot be fetched through the driver with a higher priority
    # but the same alias.
    # Once the table is fetched it will use that information to auto-route as usual.
    - alias: high-availability
      dsn: 'neo4j://core2.mydomain.com:7687'
      priority: 0
      authentication:
        type: 'oidc'
        token: '%neo4j.openconnect-id-token%'
    - alias: backup-instance
      dsn: 'bolt://localhost:7687'
      authentication:
        type: basic
        username: '%neo4j.backup-user%'
        password: '%neo4j.backup-pass%'
```

Testing
-------

[](#testing)

```
$ composer test
```

Example application
-------------------

[](#example-application)

See an example application at  (legacy project)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](../LICENSE) for more information.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

864d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c18baa4040daa8e7a0e7bb992fc2c566ef065876e0f9c12805c712127ac16dd?d=identicon)[kitlabs](/maintainers/kitlabs)

---

Top Contributors

[![transistive](https://avatars.githubusercontent.com/u/16435930?v=4)](https://github.com/transistive "transistive (67 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (62 commits)")[![ikwattro](https://avatars.githubusercontent.com/u/1222009?v=4)](https://github.com/ikwattro "ikwattro (9 commits)")[![xavismeh](https://avatars.githubusercontent.com/u/181753?v=4)](https://github.com/xavismeh "xavismeh (4 commits)")[![TNAJanssen](https://avatars.githubusercontent.com/u/2812277?v=4)](https://github.com/TNAJanssen "TNAJanssen (2 commits)")[![spolischook](https://avatars.githubusercontent.com/u/1978331?v=4)](https://github.com/spolischook "spolischook (2 commits)")[![lcp0578](https://avatars.githubusercontent.com/u/10859621?v=4)](https://github.com/lcp0578 "lcp0578 (2 commits)")[![aliel](https://avatars.githubusercontent.com/u/429453?v=4)](https://github.com/aliel "aliel (1 commits)")[![theUm](https://avatars.githubusercontent.com/u/3176889?v=4)](https://github.com/theUm "theUm (1 commits)")[![FlorinMotoc](https://avatars.githubusercontent.com/u/10770978?v=4)](https://github.com/FlorinMotoc "FlorinMotoc (1 commits)")[![angelov](https://avatars.githubusercontent.com/u/138429?v=4)](https://github.com/angelov "angelov (1 commits)")

---

Tags

symfonybundledatabaseneo4jcyphergraph

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kitlabs-neo4j-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/kitlabs-neo4j-bundle/health.svg)](https://phpackages.com/packages/kitlabs-neo4j-bundle)
```

PHPackages © 2026

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