PHPackages                             i-kadar/php-cypher-dsl - 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. i-kadar/php-cypher-dsl

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

i-kadar/php-cypher-dsl
======================

A query builder for the Cypher query language written in PHP

014PHP

Since Jan 29Pushed 2y agoCompare

[ Source](https://github.com/ikadar/php-cypher-dsl)[ Packagist](https://packagist.org/packages/i-kadar/php-cypher-dsl)[ RSS](/packages/i-kadar-php-cypher-dsl/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

php-cypher-dsl
==============

[](#php-cypher-dsl)

The `php-cypher-dsl` library provides a way to construct advanced Cypher queries in an object-oriented and type-safe manner.

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

[](#documentation)

[The documentation can be found on the wiki here.](https://github.com/WikibaseSolutions/php-cypher-dsl/wiki)

Installation
------------

[](#installation)

### Requirements

[](#requirements)

`php-cypher-dsl` requires PHP 7.4 or greater; using the latest version of PHP is highly recommended.

### Installation through Composer

[](#installation-through-composer)

You can install `php-cypher-dsl` through composer by running the following command:

```
composer require "wikibase-solutions/php-cypher-dsl"

```

Contributing
------------

[](#contributing)

Please refer to [CONTRIBUTING.md](https://github.com/neo4j-php/php-cypher-dsl/blob/main/.github/CONTRIBUTING.md) for information on how to contribute to this project.

Example
-------

[](#example)

To construct a query to find all of Tom Hanks' co-actors, you can use the following code:

```
use function WikibaseSolutions\CypherDSL\node;
use function WikibaseSolutions\CypherDSL\query;

$tom = node("Person")->withProperties(["name" => "Tom Hanks"]);
$coActors = node();

$statement = query()
    ->match($tom->relationshipTo(Query::node(), "ACTED_IN")->relationshipFrom($coActors, "ACTED_IN"))
    ->returning($coActors->property("name"))
    ->build();
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

Top contributor holds 74.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://www.gravatar.com/avatar/5572695d9553901a350e68e5402ab800d2d03137ee623ddde9c0743290fc8164?d=identicon)[ikadar](/maintainers/ikadar)

---

Top Contributors

[![marijnvanwezel](https://avatars.githubusercontent.com/u/96489967?v=4)](https://github.com/marijnvanwezel "marijnvanwezel (365 commits)")[![transistive](https://avatars.githubusercontent.com/u/16435930?v=4)](https://github.com/transistive "transistive (96 commits)")[![akkermans99](https://avatars.githubusercontent.com/u/44165501?v=4)](https://github.com/akkermans99 "akkermans99 (14 commits)")[![wgevaert](https://avatars.githubusercontent.com/u/56224691?v=4)](https://github.com/wgevaert "wgevaert (10 commits)")[![ikadar](https://avatars.githubusercontent.com/u/2832767?v=4)](https://github.com/ikadar "ikadar (4 commits)")[![26](https://avatars.githubusercontent.com/u/7414557?v=4)](https://github.com/26 "26 (2 commits)")[![WikibaseJesse](https://avatars.githubusercontent.com/u/92438490?v=4)](https://github.com/WikibaseJesse "WikibaseJesse (1 commits)")

### Embed Badge

![Health badge](/badges/i-kadar-php-cypher-dsl/health.svg)

```
[![Health](https://phpackages.com/badges/i-kadar-php-cypher-dsl/health.svg)](https://phpackages.com/packages/i-kadar-php-cypher-dsl)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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