2017 © Pedro Peláez
 

library php-redis-timeseries

PHP library to store time series analytics data into Redis

image

acostes/php-redis-timeseries

PHP library to store time series analytics data into Redis

  • Wednesday, December 28, 2016
  • by acostes
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP Redis TimeSeries Build Status

PHP library to store time series analytics data into Redis, (*1)

Install

    composer require acostes/php-redis-timeseries

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

  • PHP >= 5.6
  • Redis >= 2.6

Author

License

The code for Redistats is distributed under the terms of the MIT license (see LICENSE)., (*2)

The Versions

28/12 2016

dev-master

9999999-dev

PHP library to store time series analytics data into Redis

  Sources   Download

MIT

The Requires

 

The Development Requires

analytics redis nosql stats timeseries