项目作者: z-song

项目描述 :
Integrates your Laravel application with a redis manager
高级语言: Vue
项目地址: git://github.com/z-song/redis-manager.git
创建时间: 2017-12-13T06:52:08Z
项目社区:https://github.com/z-song/redis-manager

开源协议:MIT License

下载


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:

  1. composer require encore/redis-manager

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

  1. 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:

  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Redis Manager Base Path
  6. |--------------------------------------------------------------------------
  7. |
  8. | Base path for Redis Manager
  9. |
  10. */
  11. 'base_path' => 'redis-manager',
  12. /*
  13. |--------------------------------------------------------------------------
  14. | Redis Manager Middleware
  15. |--------------------------------------------------------------------------
  16. |
  17. | The Redis Manager's route middleware.
  18. |
  19. */
  20. 'middleware' => [],
  21. /*
  22. |--------------------------------------------------------------------------
  23. | Redis Manager Results Per Page
  24. |--------------------------------------------------------------------------
  25. |
  26. | Here you can configure for the number of results will show in the
  27. | Redis Manager search page.
  28. |
  29. */
  30. 'results_per_page' => 50,
  31. /*
  32. |--------------------------------------------------------------------------
  33. | Redis Manager Disable Commands
  34. |--------------------------------------------------------------------------
  35. |
  36. | The commands listed here was disabled when you use Redis Manager Console
  37. | to run commands. Feel free to add commands here which you do not want
  38. | users to use.
  39. |
  40. */
  41. 'disable_commands' => [
  42. 'flushdb'
  43. ]
  44. ];

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:

  1. RedisManager::auth(function ($request) {
  2. // return true / false;
  3. });

License

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