2017 © Pedro Peláez
 

library readis

A web interface to read data from redis server(s)

image

hollodotme/readis

A web interface to read data from redis server(s)

  • Monday, July 16, 2018
  • by hollodotme
  • Repository
  • 3 Watchers
  • 19 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 21 Versions
  • 0 % Grown

The README.md

Build Latest Stable Version License, (*1)

readis

A web interface to read data from redis server(s), (*2)

Docker image

You can find a ready to run docker image here., (*3)

docker pull hollodotme/readis

Features

  • Setup / Selection for multiple redis servers
  • Mapping database keys to expressive database names
  • Selection of a database inside a redis server
  • Searching for keys (with placeholders) inside a database
  • Listing of found keys with variable limit
  • Basic information about keys
  • Viewing the content of all key types
  • Viewing all elements/members/fields in lists, (sorted) sets and hashes all at once
  • Prettified JSON view, if value is a compact JSON string
  • Listing of slow logs
  • Table with all the current server instance information / stats
  • Table with all the current server configs
  • Real-time server monitor for connected clients and I/O in KB/sec.

Requirements

  • Webserver (nginx, apache2, etc.)
  • PHP >= 7.1 with phpredis extension
  • composer

Installation

Assuming you'll install readis under /var/www/readis on your server., (*4)

  1. SSH into your webserver.
  2. $ git clone https://github.com/hollodotme/readis.git /var/www/readis
  3. $ cd /var/www/readis
  4. $ git checkout v2.0.0
  5. $ composer install -a --no-dev --no-interaction
  6. $ cp config/app.sample.php config/app.php
  7. Set up the baseUrl in config/app.php (Should be the full HTTP URL with path, e.g. https://www.example.com/readis/)
  8. $ cp config/servers.sample.php config/servers.php
  9. Set up all server instances in config/servers.php
  10. Set up your webserver VHost with document root /var/www/readis/public

Sample app configuration

  • File: config/app.php

Using readis under a separate (sub-)domain:, (*5)

<?php

return [
    'baseUrl' => 'http://readis.example.com',
];

Using readis under a path of a domain:, (*6)

<?php

return [
    'baseUrl' => 'http://www.example.com/readis',
];

Sample server configuration

  • File: config/servers.php
<?php

return [
    [
        'name'          => 'Local redis server 1',
        'host'          => '127.0.0.1',
        'port'          => 6379,
        'timeout'       => 2.5,
        'retryInterval' => 100,
        'auth'          => null,
        'databaseMap'   => [
            '0' => 'Sessions',
            '1' => 'Sample Data',
            // ...
        ],
    ],
    /*
    [
        'name'          => 'Local redis server 2',
        'host'          => '127.0.0.2',
        'port'          => 6379,
        'timeout'       => 2.5,
        'retryInterval' => 100,
        'auth'          => null,
        'databaseMap'   => [
            '0' => 'Sessions',
            '1' => 'Sample Data',
            // ...
        ],
    ],
    */
];

You can map the numeric database keys to plain text names. Keys that were not mapped will still be displayed as Database [KEY]., (*7)

Please note: If the CONFIG command is disabled in your redis server, the database map becomes the fallback listing of available databases., (*8)

Regarding auth/password:
If your redis server is not started with the requirepass option and a password, the value for the auth config value must be null (not an empty string or false)., (*9)

Sample nginx configuration

server {
    listen 80;

    # Change the domain name
    server_name www.your-domain.net;

    root /var/www/readis/public;
    index index.php;

    location / {
        try_files $uri $uri/ /index.php?$args;
    }

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
    }
}

That's it., (*10)

Run locally

In order to run readis locally, follow these steps:, (*11)

  1. $ git clone https://github.com/hollodotme/readis.git
  2. $ cd readis/
  3. $ composer update -o
  4. $ cp config/app.sample.php config/app.php
  5. $ cp config/servers.sample.php config/servers.php
  6. $ php -S 127.0.0.1:8080 -t public/ (starts local webserver)
  7. $ docker-compose up -d redis (starts redis-server instance on localhost:6379)
  8. Open: http://127.0.0.1:8080

The Versions

16/07 2018

dev-dependabot/composer/twig/twig-2.5.0

dev-dependabot/composer/twig/twig-2.5.0

A web interface to read data from redis server(s)

  Sources   Download

MIT

The Requires

 

The Development Requires

27/06 2018

dev-master

9999999-dev

A web interface to read data from redis server(s)

  Sources   Download

MIT

The Requires

 

The Development Requires

27/06 2018

dev-development

dev-development

A web interface to read data from redis server(s)

  Sources   Download

MIT

The Requires

 

The Development Requires

27/06 2018

v2.2.0

2.2.0.0

A web interface to read data from redis server(s)

  Sources   Download

MIT

The Requires

 

The Development Requires

14/05 2018

v2.1.0

2.1.0.0

A web interface to read data from redis server(s)

  Sources   Download

MIT

The Requires

 

The Development Requires

13/05 2018

dev-issue/8

dev-issue/8

A web interface to read data from redis server(s)

  Sources   Download

MIT

The Requires

 

The Development Requires

12/05 2018

dev-issue/9

dev-issue/9

A web interface to read data from redis server(s)

  Sources   Download

MIT

The Requires

 

The Development Requires

03/04 2018

v2.0.0

2.0.0.0

A web interface to read data from redis server(s)

  Sources   Download

MIT

The Requires

 

The Development Requires

03/04 2018

dev-dependabot/composer/twig/twig-2.4.8

dev-dependabot/composer/twig/twig-2.4.8

A web interface to read data from redis server(s)

  Sources   Download

MIT

The Requires

 

The Development Requires

21/03 2018

dev-dependabot/composer/twig/twig-2.4.7

dev-dependabot/composer/twig/twig-2.4.7

A web interface to read data from redis server(s)

  Sources   Download

MIT

The Requires

 

05/03 2018

dev-dependabot/composer/twig/twig-2.4.6

dev-dependabot/composer/twig/twig-2.4.6

A web interface to read data from redis server(s)

  Sources   Download

MIT

The Requires

 

30/12 2017

dev-dev

dev-dev

A web interface to read data from redis server(s)

  Sources   Download

MIT

The Requires

 

The Development Requires

30/12 2017

dev-dependabot/composer/twig/twig-2.4.4

dev-dependabot/composer/twig/twig-2.4.4

A web interface to read data from redis server(s)

  Sources   Download

MIT

The Requires

 

30/12 2017

dev-dependabot/composer/icehawk/icehawk-2.2.0

dev-dependabot/composer/icehawk/icehawk-2.2.0

A web interface to read data from redis server(s)

  Sources   Download

MIT

The Requires

 

03/01 2017

v1.1.3

1.1.3.0

A web interface to read data from redis server(s)

  Sources   Download

MIT

The Requires

 

03/01 2017

dev-issue/1

dev-issue/1

A web interface to read data from redis server(s)

  Sources   Download

MIT

The Requires

 

03/03 2016

v1.1.2

1.1.2.0

A web interface to read data from redis server(s)

  Sources   Download

MIT

The Requires

 

03/02 2016

v1.1.1

1.1.1.0

A web interface to read data from redis server(s)

  Sources   Download

MIT

The Requires

 

30/01 2016

v1.1.0

1.1.0.0

A web interface to read data from redis server(s)

  Sources   Download

MIT

The Requires

 

16/12 2015

v1.0.1

1.0.1.0

A web interface to read data from redis server(s)

  Sources   Download

MIT

The Requires

 

06/12 2015

v1.0.0

1.0.0.0

A web interface to read data from redis server(s)

  Sources   Download

MIT

The Requires