New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

encore/redis-manager

Redis manager for laravel
43,221 248
Install
composer require encore/redis-manager
Latest Version:v0.1.2
PHP:>=7.0.0
Laravel:5
License:MIT
Last Updated:Apr 24, 2018
Links: GitHub  ·  Packagist
Maintainer: encore

redis-manager

StyleCI Packagist Total Downloads

Redis-manager gives your laravel application a redis web administration interface that allows you to easily manipulate the most commonly used data types for redis (strings, hashes, lists, sets, sorted sets).

It also provides a web-style command-line tool that works like redis-cli that can run most of the redis commands.

Redis-manager allows you to easily monitor several redis system status, including memory usage, cpu usage, and the throughput of each command.

Here is the living demo

redis-manager reads laravel's redis configuration located in the config/database.php

Installation

You may use Composer to install Redis-manager into your Laravel project:

composer require encore/redis-manager

After installing redis-manager, publish its assets using the vendor:publish Artisan command:

php artisan vendor:publish --provider="Encore\RedisManager\RedisManagerServiceProvider"

After installation, open http://your-server/redis-manager to access redis-manager.

Configuration

The config file was published at config/redis-manager.php, and the default contents of the configuration:

<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Redis Manager Base Path
    |--------------------------------------------------------------------------
    |
    | Base path for Redis Manager
    |
    */

    'base_path' => 'redis-manager',

    /*
    |--------------------------------------------------------------------------
    | Redis Manager Middleware
    |--------------------------------------------------------------------------
    |
    | The Redis Manager's route middleware.
    |
    */

    'middleware' => [],

    /*
    |--------------------------------------------------------------------------
    | Redis Manager Results Per Page
    |--------------------------------------------------------------------------
    |
    | Here you can configure for the number of results will show in the
    | Redis Manager search page.
    |
    */

    'results_per_page' => 50,

    /*
    |--------------------------------------------------------------------------
    | Redis Manager Disable Commands
    |--------------------------------------------------------------------------
    |
    | The commands listed here was disabled when you use Redis Manager Console
    | to run commands. Feel free to add commands here which you do not want
    | users to use.
    |
    */

    'disable_commands' => [
        'flushdb'
    ]
];

Authentication

By default, you will only be able to access redis-manager in the local environment. To define a more specific access policy for it, you should use the RedisManager::auth method. The auth method accepts a callback which should return true or false, indicating whether the user should have access to redis-manager:

RedisManager::auth(function ($request) {
    // return true / false;
});

License

Redis manager is open-sourced software licensed under the MIT license

Related Packages

namoshek/laravel-redis-sentinel

An extension of Laravels Redis driver which supports connecting to a Redis maste...

1,107,014 40
mmeyer2k/redistree

A clean Redis web interface for Laravel 5

629,555 9
cfernandez777/laravel-redis-sentinel

An extension of Laravels Redis driver which supports connecting to a Redis maste...

15,400 1
tfboe/fm-lib

A lumen package with base functionality for all foosball manager applications

665 0
um-flint/laravel-multi-tenant-redis

Laravel package to allow for a better "cache:clear".

557 0

Version History

Version Released PHP Laravel License
v0.1.2 >=7.0.0 ~5.5 MIT
v0.1.1 >=7.0.0 5.5.* MIT
v0.1.0 >=7.0.0 ~5.5 MIT