Download the PHP package snipershady/redis-information-analyzer without Composer
On this page you can find all versions of the php package snipershady/redis-information-analyzer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download snipershady/redis-information-analyzer
More information about snipershady/redis-information-analyzer
Files in snipershady/redis-information-analyzer
Package redis-information-analyzer
Short Description Software to analyze redis performances
License GPL-2.0-or-later
Homepage https://www.spinfo.it
Informations about the package redis-information-analyzer
Redis Information Analyzer
A powerful PHP library to analyze and monitor Redis server performance and statistics. This library provides an elegant object-oriented interface to retrieve and analyze Redis information with strongly-typed DTOs.
Features
- Comprehensive Redis server information retrieval
- Strongly-typed DTOs for all Redis INFO sections
- Detailed connected clients list with full metadata
- Memory usage and fragmentation analysis
- Performance statistics and hit rate monitoring
- Replication status tracking
- Persistence (RDB/AOF) monitoring
- CPU usage metrics
- Built-in web dashboard for visualization
- Singleton connection management
- Full PHP 8.2+ type safety
Requirements
- PHP >= 8.2
- Redis server
- PHP Redis extension (
ext-redis) - Predis library
Installation
Install the library via Composer:
Quick Start
Basic Usage
Retrieving Specific Information
Server Information
Memory Information
Statistics
Connected Clients
Clients Summary Information
CPU Information
Keyspace Information
Replication Information
Persistence Information
Monitoring Example
Web Dashboard
The library includes a ready-to-use web dashboard for visualizing Redis information.
Setup Web Dashboard
-
Point your web server to the
publicdirectory: - Open your browser and navigate to
http://localhost:8080
The dashboard displays:
- Server information
- Memory usage and fragmentation
- Statistics and performance metrics
- CPU usage
- Connected clients summary
- Detailed client list with all metadata
- Keyspace information
- Replication status
- Persistence (RDB/AOF) status
Custom Implementation
You can also integrate the library into your own application:
Configuration
Custom Redis Connection
By default, the library connects to redis-server:6379. To customize the connection, modify the RedisConnection class or extend it:
API Reference
RedisInformationRetriever
Main class for retrieving Redis information.
Methods
getAllInfo(): array- Get all Redis information sectionsgetServerInfo(): ServerDto- Get server informationgetMemoryInfo(): MemoryDto- Get memory informationgetStatsInfo(): StatsDto- Get statisticsgetCpuInfo(): CpuDto- Get CPU informationgetClientsInfo(): ClientsDto- Get clients summarygetKeyspaceInfo(): KeyspaceDto- Get keyspace informationgetReplicationInfo(): ReplicationDto- Get replication informationgetPersistenceInfo(): PersistenceDto- Get persistence informationgetClientList(): array- Get detailed list of connected clientsgetNumberOfConnection(): int- Get number of connected clients
Available DTOs
Each DTO provides typed getter methods for accessing Redis information:
ServerDto- Server and system informationMemoryDto- Memory usage and fragmentationStatsDto- Performance statisticsCpuDto- CPU usage metricsClientsDto- Clients summary informationKeyspaceDto- Database and keys informationReplicationDto- Replication statusPersistenceDto- RDB and AOF persistence statusRedisClientInfo- Individual client detailed information
Development
Code Quality Tools
Requirements for Development
- PHP >= 8.2
- Composer
- PHP-CS-Fixer
- PHPStan
- Rector
License
This project is licensed under the GPL-2.0 License - see the LICENSE file for details.
Author
Stefano Perrini
- Homepage: https://www.spinfo.it
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
For bugs, feature requests, or questions, please open an issue on the GitHub repository.