Skip to content

Latest commit

 

History

History
64 lines (51 loc) · 2.1 KB

File metadata and controls

64 lines (51 loc) · 2.1 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[1.1.1] - 2023-12-09

Removed

  • Legacy GraphRedis.php file in root directory
  • Outdated documentation references to old file

Changed

  • Updated installation instructions in README_CN.md
  • Cleaned up project structure for Composer-only usage

[1.1.0] - 2023-12-09

Added

  • Redis database selection support (0-15 databases)
  • Database isolation for nodes, edges and counters
  • Enhanced constructor with database parameter
  • Database selection validation and error handling
  • New unit tests for database isolation
  • Database isolation demonstration in examples

Changed

  • Improved getStats() to work with database-specific counters
  • Updated documentation with database usage examples
  • Enhanced error messages for invalid database numbers

[1.0.0] - 2023-12-09

Added

  • Initial release of GraphRedis
  • Core graph database functionality with Redis backend
  • Node management (create, read, update, delete)
  • Edge management with weights and properties
  • Graph traversal algorithms (DFS, BFS shortest path)
  • Composer package support with PSR-4 autoloading
  • Comprehensive unit tests with PHPUnit
  • Demo examples and documentation
  • Chinese documentation (README_CN.md)

Features

  • Node Operations: Add, get, update, delete nodes with custom properties
  • Edge Operations: Create directed edges with weights and properties
  • Graph Algorithms: BFS shortest path and DFS traversal
  • Pagination: Support for paginated neighbor queries
  • Statistics: Graph statistics and memory usage reporting
  • Error Handling: Proper exception handling for Redis connection issues

Development Tools

  • PHPUnit test suite with 13 test cases
  • PHPStan static analysis support
  • PHP_CodeSniffer for code style checking
  • Composer scripts for common tasks
  • Comprehensive examples and documentation

Requirements

  • PHP 7.4+
  • Redis server
  • PHP Redis extension