PHPackages                             marow-dev/redis-connector - 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. marow-dev/redis-connector

ActiveLibrary[Caching](/categories/caching)

marow-dev/redis-connector
=========================

Redis client

0.2.0(9y ago)016MITPHPPHP &gt;=5.3.0

Since Aug 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/marow-dev/php-redis-connector)[ Packagist](https://packagist.org/packages/marow-dev/redis-connector)[ Docs](https://github.com/marow-dev/php-redis-connector)[ RSS](/packages/marow-dev-redis-connector/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

php-redis-connector
===================

[](#php-redis-connector)

Redis client

Connecting to redis
===================

[](#connecting-to-redis)

```
$connection = RedisConnector\Connection();

```

If connection cant be established RedisConnector\\ConnectorException is thrown.

Default connection parameters are:

hostname: localhost

port: 6379

Client
======

[](#client)

```
$client = new RedisConnector\Client(new RedisConnector\Connection());

```

Sending commands to redis
=========================

[](#sending-commands-to-redis)

```
$client = new RedisConnector\Client(new RedisConnector\Connection());
$client->set('key', 'value');

```

Most popular commands are methods in RedisConnector\\Client class (get, set, etc.). You can issue other commands by using RedisConnector\\Client object (class RedisConnector\\Client implements magic method \_\_call).

Exceptions Codes
================

[](#exceptions-codes)

- 10000 - Connection cannot be established
- 10001 - Not connected to redis
- 10002 - Response read error
- 10003 - Error generated by Redis
- 10004 - Command send error
- 10100 - No response method
- 10200 - Data is not an object
- 10201 - Data is not an array
- 10202 - Wrong key

Example
=======

[](#example)

```
try {
  $client = new RedisConnector\Client(new RedisConnector\Connection());
  $client->set('test', 'value of key test');
  $testValue = $client->get('test');
} catch ($e RedisConnector\ConnectorException) {
  var_dump($e);
}

```

###  Health Score

22

—

LowBetter than 24% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

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

Unknown

Total

1

Last Release

3511d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/08a8995de32016d8cac1d60a2335dabf143835238fc31e31c015af6d9bbc9b88?d=identicon)[marow-dev](/maintainers/marow-dev)

---

Top Contributors

[![marow-dev](https://avatars.githubusercontent.com/u/18579337?v=4)](https://github.com/marow-dev "marow-dev (32 commits)")

---

Tags

redis

### Embed Badge

![Health badge](/badges/marow-dev-redis-connector/health.svg)

```
[![Health](https://phpackages.com/badges/marow-dev-redis-connector/health.svg)](https://phpackages.com/packages/marow-dev-redis-connector)
```

###  Alternatives

[predis/predis

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

7.8k299.5M2.1k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k38.9M65](/packages/snc-redis-bundle)[clue/redis-protocol

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

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

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

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

Message Queue Redis Transport

405.5M21](/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)
