PHPackages                             syndesi/cypher-data-structures - 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. syndesi/cypher-data-structures

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

syndesi/cypher-data-structures
==============================

Provides generic cypher data structures for PHP

0.4.0(1y ago)29.4k↑350%2[1 PRs](https://github.com/neo4j-php/cypher-data-structures/pulls)1MITPHPPHP ^8.0CI passing

Since Sep 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/neo4j-php/cypher-data-structures)[ Packagist](https://packagist.org/packages/syndesi/cypher-data-structures)[ Docs](https://neo4j-php.github.io/cypher-data-structures/#/)[ RSS](/packages/syndesi-cypher-data-structures/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (9)Versions (11)Used By (1)

[![GitHub](https://camo.githubusercontent.com/8be8b5f9a0d929b6480a74054dd28e79c429ff99307c71eb16d5d292a627e96e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e656f346a2d7068702f6379706865722d646174612d73747275637475726573)](https://github.com/neo4j-php/cypher-data-structures/blob/main/LICENSE)[![Packagist PHP Version Support (specify version)](https://camo.githubusercontent.com/53a3e53135927468cf91f53eff3b2baf4e42b800751b0376d2c268e1ed08b6fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73796e646573692f6379706865722d646174612d737472756374757265732f6465762d6d61696e)](https://camo.githubusercontent.com/53a3e53135927468cf91f53eff3b2baf4e42b800751b0376d2c268e1ed08b6fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73796e646573692f6379706865722d646174612d737472756374757265732f6465762d6d61696e)[![Packagist Version](https://camo.githubusercontent.com/3fcaf719403cb6ebb372d455a5a3c22d43b3c1e260ac171327feb3324e2faf08/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73796e646573692f6379706865722d646174612d73747275637475726573)](https://camo.githubusercontent.com/3fcaf719403cb6ebb372d455a5a3c22d43b3c1e260ac171327feb3324e2faf08/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73796e646573692f6379706865722d646174612d73747275637475726573)[![Packagist Downloads](https://camo.githubusercontent.com/e2b29fa63306bffde52c5eb94dc317a5a05bfa26041ec3d8284e797f8e1e52d4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f73796e646573692f6379706865722d646174612d73747275637475726573)](https://camo.githubusercontent.com/e2b29fa63306bffde52c5eb94dc317a5a05bfa26041ec3d8284e797f8e1e52d4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f73796e646573692f6379706865722d646174612d73747275637475726573)

[![Test Coverage](https://camo.githubusercontent.com/95c308f15c7ce02ec6f15ec36a10a5d432b8aa856cea82076ff80fa1e29c2bfb/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f33613661656630333838333965356262356235392f746573745f636f766572616765)](https://codeclimate.com/github/Syndesi/cypher-data-structures/test_coverage)[![Maintainability](https://camo.githubusercontent.com/379317792fc61086263d3f5eaa774a768d4265475434a7299dd4dfdbffaee8d5/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f33613661656630333838333965356262356235392f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/Syndesi/cypher-data-structures/maintainability)

Syndesi's Cypher Data Structures
================================

[](#syndesis-cypher-data-structures)

This library provides basic data classes, so that working with Cypher based graph databases becomes easy.

- [Documentation](https://neo4j-php.github.io/cypher-data-structures)
- [Packagist](https://packagist.org/packages/syndesi/cypher-data-structures)

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

[](#installation)

To install this library, run the following code:

```
composer require syndesi/cypher-data-structures
```

This is all, now you can use the library :D

Using the library
-----------------

[](#using-the-library)

```
use Syndesi\CypherDataStructures\Type\Node;
use Syndesi\CypherDataStructures\Type\Relation;

$node = new Node();
$node
    ->addLabel('NodeLabel')
    ->addIdentifier('id', 123)
    ->addProperty('someProperty', 'someValue')
    ->addIdentifier('id');

$otherNode = new Node();
$otherNode
    ->addLabel('OtherNodeLabel')
    ->addIdentifier('id', 234)
    ->addProperty('hello', 'world :D')
    ->addIdentifier('id');

$relation = new Relation();
$relation
    ->setStartNode($node)
    ->setEndNode($node)
    ->setType('SOME_RELATION');
```

Advanced integration
--------------------

[](#advanced-integration)

This library itself does not provide advanced features like validation. Those are separated into their own projects:

- Validation: Work in progress, not yet released.
- [Entity Manager](https://github.com/neo4j-php/cypher-entity-manager): Automatically creates and runs Cypher statements from data objects of this library for you.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance43

Moderate activity, may be stable

Popularity29

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~112 days

Recently: every ~209 days

Total

9

Last Release

457d ago

PHP version history (2 changes)0.0.0PHP ^8.1

0.2.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/28fc27d76b4e084add2057e6d5f855fe5322aebaaa01a3f53bb603217bcb894f?d=identicon)[Syndesi](/maintainers/Syndesi)

---

Top Contributors

[![Syndesi](https://avatars.githubusercontent.com/u/9903723?v=4)](https://github.com/Syndesi "Syndesi (92 commits)")

---

Tags

cypherneo4jphpneo4jcyphergraph

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/syndesi-cypher-data-structures/health.svg)

```
[![Health](https://phpackages.com/badges/syndesi-cypher-data-structures/health.svg)](https://phpackages.com/packages/syndesi-cypher-data-structures)
```

###  Alternatives

[graphp/graph

GraPHP is the mathematical graph/network library written in PHP.

711292.6k3](/packages/graphp-graph)[amenadiel/jpgraph

Composer Friendly, full refactor of JpGraph, library to make graphs and charts

1492.2M7](/packages/amenadiel-jpgraph)[graphaware/neo4j-common

Common Utilities library for Neo4j

24876.2k24](/packages/graphaware-neo4j-common)[neo4j/neo4j-bundle

Symfony integration for Neo4j

8272.1k](/packages/neo4j-neo4j-bundle)[wikibase-solutions/php-cypher-dsl

A query builder for the Cypher query language

1853.4k4](/packages/wikibase-solutions-php-cypher-dsl)

PHPackages © 2026

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