PHPackages                             ents24/neo4j-query-builder-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ents24/neo4j-query-builder-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ents24/neo4j-query-builder-php
==============================

Cypher query builder for PHP

153PHP

Since Jul 19Pushed 8y ago3 watchersCompare

[ Source](https://github.com/Ents24/neo4j-query-builder-php)[ Packagist](https://packagist.org/packages/ents24/neo4j-query-builder-php)[ RSS](/packages/ents24-neo4j-query-builder-php/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Cypher Query Builder for PHP
============================

[](#cypher-query-builder-for-php)

Forked from adadgio/graph-bundle.

I needed a Cypher query builder and liked this one, but without all the Symfony and related gubbins.

Install
-------

[](#install)

Install with composer:

`composer require ents24/neo4j-query-builder-php:dev-master`

Usage Examples
==============

[](#usage-examples)

```
use Adadgio\GraphBundle\ORM\Cypher;

$cypher = (new Cypher())
    ->match('a', 'Document')
    ->match('b', 'Page')
    ->andReturn('a.id, a.name AS `a.test`, b.id, b.name')->withLabels()->withId();

// is the same as
$cypher = (new Cypher())
    ->match('a', 'Document')
    ->match('b', 'Page')
    ->andReturn('a.id, a.name AS `a.test`, b.id, b.name, labels(a), labels(b), id(a), id(b)');

// trying queries with relationships constraints (and passing string to manager instead of object)
$queryString = (new Cypher())
    ->match('a', 'Countries', array('id' => 5))
    ->newPattern()
    ->match('b', ':City:Town')
        ->relatedWith('a')
        ->by('r', 'IS_IN', array('max' => 3), '->')
    ->newPattern()
    ->match('a')
    ->getQuery();

$cypherA = (new Cypher())
    ->match('a', 'Document', array('id' => 389))
    ->set('a', array('name' => 'The good, the bad and the ugly'));

$cypherB = (new Cypher())
    ->match('a', 'Document', array('id' => 390))
    ->set('a', array('name' => 'The good, the bad and the ugly'));
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.2% 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://avatars.githubusercontent.com/u/8581265?v=4)[Mark Wood](/maintainers/mark-ents24)[@mark-ents24](https://github.com/mark-ents24)

---

Top Contributors

[![adadgio](https://avatars.githubusercontent.com/u/502070?v=4)](https://github.com/adadgio "adadgio (15 commits)")[![mark-ents24](https://avatars.githubusercontent.com/u/8581265?v=4)](https://github.com/mark-ents24 "mark-ents24 (7 commits)")

### Embed Badge

![Health badge](/badges/ents24-neo4j-query-builder-php/health.svg)

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

###  Alternatives

[saade/filament-adjacency-list

A Filament package to adjacency lists.

9761.7k5](/packages/saade-filament-adjacency-list)[ibrahimbougaoua/filament-rating-star

This is my package filament-rating-star

42106.0k1](/packages/ibrahimbougaoua-filament-rating-star)[alleyinteractive/wp-alleyvate

Defaults for WordPress sites by Alley.

3539.6k](/packages/alleyinteractive-wp-alleyvate)[scws/pscws4

PSCWS 是英文 PHP Simple Chinese Words Segmentation 的头字母缩写，它是 SCWS 项目的前身。

1213.2k1](/packages/scws-pscws4)

PHPackages © 2026

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