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

ActiveLibrary[Caching](/categories/caching)

blancoms/redis-graph
====================

PHP RedisGraph client

2.1.9(4y ago)049MITPHPPHP &gt;=7.0

Since Oct 24Pushed 4y agoCompare

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

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

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

[](#redisgraph-php-client)

[![Build Status](https://camo.githubusercontent.com/febf707d3086fc0dd13298fc86c8c979f39703bb8683ac3d084917e88580f4de/68747470733a2f2f7472617669732d63692e6f72672f626c616e636f6d732f7068702d72656469732d67726170682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/blancoms/php-redis-graph)

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

Install
-------

[](#install)

```
composer require blancoms/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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 70% 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 ~94 days

Recently: every ~13 days

Total

13

Last Release

1630d ago

Major Versions

1.0.0 → 2.0.02020-05-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/153be4fd218c690c886e90b89d8f6edd8063ff201bbd31bba7e9b2430a6a0140?d=identicon)[blancoms](/maintainers/blancoms)

---

Top Contributors

[![kjdev](https://avatars.githubusercontent.com/u/465132?v=4)](https://github.com/kjdev "kjdev (14 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/blancoms-redis-graph/health.svg)

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

###  Alternatives

[predis/predis-async

Asynchronous version of Predis

366348.4k](/packages/predis-predis-async)[rhubarbgroup/redis-cache

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

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

Redis Sentinel integration for Laravel and Lumen.

103830.5k](/packages/monospice-laravel-redis-sentinel-drivers)[predis/service-provider

Predis service provider for the Silex microframework

68546.6k1](/packages/predis-service-provider)[jamescauwelier/psredis

Sentinel client for the popular php redis client

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

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

272.6M13](/packages/cache-predis-adapter)

PHPackages © 2026

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