PHPackages                             acostes/php-redis-timeseries - 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. [Database &amp; ORM](/categories/database)
4. /
5. acostes/php-redis-timeseries

ActiveLibrary[Database &amp; ORM](/categories/database)

acostes/php-redis-timeseries
============================

PHP library to store time series analytics data into Redis

116PHP

Since Dec 28Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Redis TimeSeries [![Build Status](https://camo.githubusercontent.com/a50b5015b6b716a6ece8d71769259b8d627a2836d37584ac6feda232a57d68ab/68747470733a2f2f7472617669732d63692e6f72672f61636f737465732f7068702d72656469732d74696d657365726965732e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/acostes/php-redis-timeseries)
========================================================================================================================================================================================================================================================================================================================================

[](#php-redis-timeseries-)

PHP library to store time series analytics data into Redis

Install
-------

[](#install)

```
    composer require acostes/php-redis-timeseries

```

Usage
-----

[](#usage)

```
    use RedisAnalytics\TimeSeries;

    // You also can add parameters to the constructor to connect to your redis intance
    // __construct($host = '127.0.0.1', $port = '6379', $database = 0)
    $ts = new TimeSeries();

    // Add a new entry to you key at a specific timestamp
    $ts->add($myKey, $timestamp, $value);

    // Retrieve all data for a specific interval $from / $to
    $ts->get($myKey, $from, $to);
```

Dependencies
------------

[](#dependencies)

- PHP &gt;= 5.6
- Redis &gt;= 2.6

Author
------

[](#author)

- Arnaud Costes ([twitter](http://twitter.com/acostes))

License
-------

[](#license)

The code for Redistats is distributed under the terms of the MIT license (see [LICENSE](LICENSE)).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/acostes-php-redis-timeseries/health.svg)

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M541](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M208](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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