PHPackages                             ikwattro/github2cypher - 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. ikwattro/github2cypher

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

ikwattro/github2cypher
======================

Github Public Events translated to Neo4j Cypher Statements

1.1.0(10y ago)01371MITPHP

Since Feb 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/ikwattro/github2cypher)[ Packagist](https://packagist.org/packages/ikwattro/github2cypher)[ RSS](/packages/ikwattro-github2cypher/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (27)Used By (0)

Github Events To Cypher
-----------------------

[](#github-events-to-cypher)

This library leverages the [GithubEvent](https://github.com/ikwattro/github-event) library and convert github event objects to Neo4j Cypher Queries.

Requirements
------------

[](#requirements)

- PHP 5.4+

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

[](#installation)

Add this library to your project dependencies :

```
composer require ikwattro/github2cypher
```

Usage
-----

[](#usage)

The usage of the library is straightforward, instantiate the `Github2CypherConverter` class and pass your **GithubEvent** objects to the convert method :

```
use Ikwattro\Github2Cypher\Github2CypherConverter;

$converter = new Github2CypherConverter();

// Assuming you have a collection of GithubEvent objects

foreach ($events as $event) {
    $statements = $converter->convert($event);
    // Returns a collection of statements of the form ['query' => 'MATCH xxx...', 'params' => ['p1' => 'v1', 'p2' => 'v2', ..]
}
```

You can then use [NeoClient](https://github.com/neoxygen/neo4j-neoclient) to import the queries into [Neo4j](http://neo4j.com).

Indexes and Constraints
-----------------------

[](#indexes-and-constraints)

If you plan to import the queries into Neo4j (which is the goal), you can create the needed indexes and unique constraints easily.

These two methods returns you an array of indexes or constraints to create on labels/properties :

- `getInitialSchemaIndexes();`
- `getInitialSchemaConstraints();`

#### Author

[](#author)

[Christophe Willemsen](https://twitter.com/ikwattro)

#### License

[](#license)

Released under the MIT License. Please read the LICENSE file attached with this package.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity73

Established project with proven stability

 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 ~5 days

Total

26

Last Release

3961d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c66009f0f147bb7dfcfbbd6837176b2fe6c6e2cdcf82d9ad07ab7d7aa47735f4?d=identicon)[ikwattro](/maintainers/ikwattro)

---

Top Contributors

[![ikwattro](https://avatars.githubusercontent.com/u/1222009?v=4)](https://github.com/ikwattro "ikwattro (34 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ikwattro-github2cypher/health.svg)

```
[![Health](https://phpackages.com/badges/ikwattro-github2cypher/health.svg)](https://phpackages.com/packages/ikwattro-github2cypher)
```

PHPackages © 2026

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