PHPackages                             versionable/ration - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. versionable/ration

ActiveLibrary[HTTP &amp; Networking](/categories/http)

versionable/ration
==================

A very simple redis client

1.0.0(13y ago)31711MITPHPPHP &gt;=5.3.3

Since Aug 6Pushed 13y agoCompare

[ Source](https://github.com/versionable/Ration)[ Packagist](https://packagist.org/packages/versionable/ration)[ RSS](/packages/versionable-ration/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Ration
======

[](#ration)

What is Ration
--------------

[](#what-is-ration)

Ration is a very simple PHP library for interacting with Redis servers.

Why build another library?
--------------------------

[](#why-build-another-library)

The current PHP libraries are overly complicated for something that should be very quick and simple. There are some great PHP extensions for communicating with Redis, however these need to be compiled and enabled on your machine which isn't always practical. This library is simple, lightweight and portable.

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

[](#requirements)

- PHP 5.3.3+

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

[](#installation)

We recommend using Composer to add ration to your project. Simply add this to your composer config:

```
{
    "require": {
        "versionable/ration": "1.0.0"
    }
}
```

Usage
-----

[](#usage)

Pinging a remote server

```
    $address = new TCP('10.0.0.1', 6379);
    $connection = new Connection($address);
    $client = new Client($connection);

    $request = new Request(new PingCommand());
    $response = $client->send($request);
```

Set then get a key

```
    $address = new TCP('10.0.0.1', 6379);
    $connection = new Connection($address);
    $client = new Client($connection);

    $request = new Request(new SetCommand('key', 'value'));
    $client->send($request);

    $request = new Request(new GetCommand('key'));
    $response = $client->send($response);
```

TODO
----

[](#todo)

- Complete documentation of current API
- Implement remaining commands

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.1% 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

5076d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/12cf0da4753a3df370dc9175bff5e188add5640cb1df8cca3b3e4c59af721fca?d=identicon)[haswalt](/maintainers/haswalt)

---

Top Contributors

[![haswalt](https://avatars.githubusercontent.com/u/338588?v=4)](https://github.com/haswalt "haswalt (4 commits)")[![cannibal](https://avatars.githubusercontent.com/u/1590620?v=4)](https://github.com/cannibal "cannibal (3 commits)")

---

Tags

reddis

### Embed Badge

![Health badge](/badges/versionable-ration/health.svg)

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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