PHPackages                             kjdev/redis-graph - 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. kjdev/redis-graph

ActiveLibrary[Caching](/categories/caching)

kjdev/redis-graph
=================

PHP RedisGraph client

2.0.0(6y ago)446.6k10[3 issues](https://github.com/kjdev/php-redis-graph/issues)MITPHPPHP &gt;=7.0

Since Oct 24Pushed 4y ago6 watchersCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (0)

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

[](#redisgraph-php-client)

[![Build Status](https://camo.githubusercontent.com/838bc41ac95d41933cdf8d6eeec994dd99fefa5893aebe3d1a609229692301b3/68747470733a2f2f7472617669732d63692e6f72672f6b6a6465762f7068702d72656469732d67726170682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kjdev/php-redis-graph)

[RedisGraph](https://github.com/RedisGraph/RedisGraph)

Install
-------

[](#install)

```
composer require kjdev/redis-graph
```

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

34

—

LowBetter than 75% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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 ~559 days

Total

2

Last Release

2246d ago

Major Versions

1.0.0 → 2.0.02020-05-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/18072f3d3a57cc6f8e11a0f405648caf4927261c0fc122f9cfa0d1441e087fb7?d=identicon)[kjdev](/maintainers/kjdev)

---

Top Contributors

[![kjdev](https://avatars.githubusercontent.com/u/465132?v=4)](https://github.com/kjdev "kjdev (15 commits)")[![gkorland](https://avatars.githubusercontent.com/u/753206?v=4)](https://github.com/gkorland "gkorland (5 commits)")[![esokullu](https://avatars.githubusercontent.com/u/19166?v=4)](https://github.com/esokullu "esokullu (1 commits)")

---

Tags

redis

### Embed Badge

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

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

###  Alternatives

[rhubarbgroup/redis-cache

A persistent object cache backend for WordPress powered by Redis. Supports Predis, PhpRedis, Relay, replication, sentinels, clustering and WP-CLI.

52999.8k1](/packages/rhubarbgroup-redis-cache)[monospice/laravel-redis-sentinel-drivers

Redis Sentinel integration for Laravel and Lumen.

103839.1k](/packages/monospice-laravel-redis-sentinel-drivers)[symfony-bundles/redis-bundle

Symfony Redis Bundle

271.2M6](/packages/symfony-bundles-redis-bundle)[jamescauwelier/psredis

Sentinel client for the popular php redis client

77397.5k5](/packages/jamescauwelier-psredis)[cache/predis-adapter

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

242.6M13](/packages/cache-predis-adapter)[pdffiller/qless-php

PHP Bindings for qless

29113.7k1](/packages/pdffiller-qless-php)

PHPackages © 2026

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