定制 pawell67/laravel-redis-explorer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pawell67/laravel-redis-explorer

Composer 安装命令:

composer require pawell67/laravel-redis-explorer

包简介

A beautiful web-based Redis Console for Laravel. Browse keys, run commands, and monitor your Redis instance.

README 文档

README

A beautiful web-based Redis Console for Laravel. Browse keys, run commands, and monitor your Redis instance — right from your browser.

Redis Console PHP

Features

  • 🖥️ CLI Interface – Run any Redis command from a terminal-like UI
  • 🔑 Key Browser – Browse keys with SCAN, see types and TTLs
  • 📊 Server Info – View Redis version, memory, clients, hit rate, and more
  • 🕐 Command History – Arrow keys navigate history, persisted in localStorage
  • ⚠️ Safety – Dangerous commands require confirmation, some are blocked entirely
  • 🔒 Read-Only Mode – Block all write commands for safe production use
  • 🔌 Multi-connection – Switch between Redis connections from the UI
  • 🎨 Beautiful Dark UI – Premium dark theme with JetBrains Mono font
  • ⚙️ Configurable – Custom path, middleware, blocked commands

Installation

composer require pawell67/laravel-redis-console

Configuration

Publish the config file:

php artisan vendor:publish --tag=redis-console-config

Config Options

Option Default Description
path redis-console URL path for the console
middleware ['web'] Route middleware
connection default Default Redis connection
max_db 15 Max DB index in selector
read_only false Block all write commands
dangerous_commands [FLUSHDB, ...] Commands that show a warning
blocked_commands [SHUTDOWN, DEBUG] Commands that are blocked

Environment Variables

REDIS_CONSOLE_PATH=redis-console
REDIS_CONSOLE_MIDDLEWARE=web
REDIS_CONSOLE_CONNECTION=default
REDIS_CONSOLE_MAX_DB=15
REDIS_CONSOLE_READ_ONLY=false

Usage

Navigate to http://your-app.test/redis-console and start running commands.

Securing in Production

Add authentication middleware in your config:

'middleware' => ['web', 'auth'],

Or enable read-only mode to prevent any data modifications:

REDIS_CONSOLE_READ_ONLY=true

License

MIT

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固