PHPackages                             rolandinsh/redis-graph-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. [Caching](/categories/caching)
4. /
5. rolandinsh/redis-graph-php

ActiveLibrary[Caching](/categories/caching)

rolandinsh/redis-graph-php
==========================

RedisGraph PHP client

1.1.0(6y ago)05MITPHP

Since Oct 24Pushed 6y agoCompare

[ Source](https://github.com/rolandinsh/redis-graph-php)[ Packagist](https://packagist.org/packages/rolandinsh/redis-graph-php)[ Docs](https://github.com/kjdev/php-redis-graph)[ RSS](/packages/rolandinsh-redis-graph-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

RedisGraph PHP Client
=====================

[](#redisgraph-php-client)

[RedisGraph](https://github.com/RedisLabsModules/redis-graph)

Original by [kjdev](https://github.com/kjdev/php-redis-graph)

Install
-------

[](#install)

```
composer require rolandinsh/redis-graph-php
```

As Redis's client library, use either.

- `predis/predis`

    > `composer require predis/predis`
- `ext-redis`

    > `pecl install redis`

Example
-------

[](#example)

```
require __DIR__ . '/vendor/autoload.php';

use Redis\Graph;
use Redis\Graph\Node;
use Redis\Graph\Edge;

$redis = new Predis\Client('redis://127.0.0.1:6379/');
// OR
// $redis = new Redis();
// $redis->connect('127.0.0.1', 6379);

$graph = new Graph('social', $redis);

$john = new Node('person', [
  'name' => 'John Doe',
  'age' => 33,
  'gender' => 'male',
  'status' => 'single'
]);
$graph->addNode($john);

$japan = new Node('country', [
  'name' => 'Japan'
]);
$graph->addNode($japan);

$edge = new Edge($john, $japan, 'visited', ['purpose' => 'pleasure']);
$graph->addEdge($edge);

$graph->commit();

$query = 'MATCH (p:person)-[v:visited {purpose:"pleasure"}]->(c:country) RETURN p.name, p.age, v.purpose, c.name';

$result = $graph->query($query);

// Print resultset
$result->prettyPrint();

// Iterate through resultset
while ($row = $result->fetch()) {
  var_dump($row);
}
// var_dump($result->fetchAll());

// All done, remove graph.
$graph->delete();
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 76.9% 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 ~355 days

Total

2

Last Release

2398d ago

### Community

Maintainers

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

---

Top Contributors

[![kjdev](https://avatars.githubusercontent.com/u/465132?v=4)](https://github.com/kjdev "kjdev (10 commits)")[![rolandinsh](https://avatars.githubusercontent.com/u/108597?v=4)](https://github.com/rolandinsh "rolandinsh (2 commits)")[![esokullu](https://avatars.githubusercontent.com/u/19166?v=4)](https://github.com/esokullu "esokullu (1 commits)")

---

Tags

cypherphpphp7php73redisredisgraphredis

### Embed Badge

![Health badge](/badges/rolandinsh-redis-graph-php/health.svg)

```
[![Health](https://phpackages.com/badges/rolandinsh-redis-graph-php/health.svg)](https://phpackages.com/packages/rolandinsh-redis-graph-php)
```

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[clue/redis-protocol

A streaming Redis protocol (RESP) parser and serializer written in pure PHP.

5311.0M13](/packages/clue-redis-protocol)[cache/redis-adapter

A PSR-6 cache implementation using Redis (PhpRedis). This implementation supports tags

523.9M27](/packages/cache-redis-adapter)[enqueue/redis

Message Queue Redis Transport

405.5M25](/packages/enqueue-redis)[kdyby/redis

Redis storage for Nette Framework

491.6M2](/packages/kdyby-redis)

PHPackages © 2026

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