drobinetm / laravel-drobinetm-redis
Package to obtain the info of a redis server used by our application through a json response.
1.0.1
2021-05-13 14:58 UTC
Requires
- php: ^7.3|^8.0
- ext-json: *
- predis/predis: ^1.1
Requires (Dev)
- mockery/mockery: ^1.0
- phpunit/phpunit: ^9.0
Suggests
- predis/predis: Required when not using the Redis PHP driver (^1.1).
README
Laravel Redis Information
Laravel package to get information from a Redis server with json response. |
How to Use
composer require drobinetm/laravel-drobinetm-redis
php artisan laravel-redis:install
In Your Project
-
Modify
phpredis
bypredis
in database.php config. -
Modify in database.php the connection config to your redis server.
Note:
Laravel Docs
Then
-
Save the printed signature property in the console.
-
Send in the header of the links the value of the signature property: [Laravel-Redis-Signature] => signature value
Endpoints
-
[GET]
/redis/info
| (Params - Optional)section: server|clients|memory|persistence|stats|replication|cpu|cluster|keyspace
-
[GET]
/redis/keys
| (Params - Optional)pattern: *|<any-pattern>
-
[GET]
/redis/slow-log
| (Params - Optional)argument: 1|<any-argument>