Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/z-song/redis-manager
Integrates your Laravel application with a redis manager
https://github.com/z-song/redis-manager
laravel manager redis
Last synced: 3 days ago
JSON representation
Integrates your Laravel application with a redis manager
- Host: GitHub
- URL: https://github.com/z-song/redis-manager
- Owner: z-song
- License: mit
- Created: 2017-12-13T06:52:08.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-24T09:26:55.000Z (over 6 years ago)
- Last Synced: 2024-10-20T18:29:35.333Z (2 months ago)
- Topics: laravel, manager, redis
- Language: Vue
- Homepage: https://zsong.me/redis-manager/
- Size: 1.05 MB
- Stars: 251
- Watchers: 12
- Forks: 34
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
`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](https://zsong.me/redis-manager/)
> 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:
```shell
composer require encore/redis-manager```
After installing `redis-manager`, publish its assets using the vendor:publish Artisan command:
```shell
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
'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`:
```php
RedisManager::auth(function ($request) {
// return true / false;
});
```## License
`Redis manager` is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)