All notable changes to PivotPHP Cycle ORM will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
This release focuses on performance optimizations, cross-platform compatibility, and code quality improvements following the PivotPHP Core v1.1.0 upgrade.
- PivotPHP Core: Updated to v1.1.0 with performance improvements for auto stress scenarios
- Environment Detection: Centralized environment detection using
EnvironmentHelperto reduce code duplication - Caching System: Implemented static caching for environment methods with 7x performance improvement
- Testing Infrastructure: Clean PHPUnit exit codes (0) for better CI/CD integration
- Cross-Platform Support: Added platform-specific scripts for test coverage
scripts/test-coverage.shfor Unix/Linux/macOSscripts/test-coverage.batfor Windows CMDscripts/test-coverage.ps1for PowerShellscripts/test-coverage.phpfor universal PHP-based execution
- Cache Management: Added
EnvironmentHelper::clearCache()method for testing scenarios - Performance Benchmarks: Added benchmark scripts to demonstrate caching benefits
- CI/CD Compatibility: Fixed PHPUnit exit codes that were causing CI failures
- Log Pollution: Suppressed test-specific error logs in testing environment
- PSR-12 Compliance: Fixed all code style violations
- Cross-Platform Issues: Resolved Windows compatibility issues with inline environment variables
- Environment Helper: Centralized cache system using single static array
- Metrics Collector: Simplified environment detection using
EnvironmentHelper::isTesting() - Test Configuration: Optimized PHPUnit configuration for better performance and compatibility
- Code Organization: Removed duplicate composer files and obsolete scripts
- Environment Detection: 7x faster performance on subsequent calls with static caching
- Test Execution: Reduced test execution time by eliminating unnecessary coverage overhead
- Memory Usage: Optimized memory usage by reducing redundant environment checks
- Clean Exit Codes: PHPUnit now returns proper exit code 0 for successful test runs
- CI-Friendly: Removed confusing error logs from test output
- Coverage Separation: Coverage generation is now optional and platform-independent
- Cross-Platform Guide: Updated documentation with platform-specific instructions
- Performance Notes: Added performance improvement documentation
- CLI Usage: Enhanced CLAUDE.md with better development workflow guidance
- Compatibility: Maintains full backward compatibility with existing APIs
- Dependencies: Updated to PivotPHP Core v1.1.0 from Packagist
- Testing: 67 tests passing with 242 assertions
- Static Analysis: PHPStan Level 8 compliance maintained
- Code Style: 100% PSR-12 compliant
- Faster Development: Improved environment detection performance
- Better CI/CD: Clean test outputs and exit codes
- Cross-Platform: Works seamlessly on Windows, macOS, and Linux
- Production Ready: Optimized for high-performance production environments
First stable release of PivotPHP Cycle ORM integration, providing robust database ORM capabilities for the PivotPHP Framework.
- Cycle ORM Integration: Complete integration with Cycle ORM for PivotPHP Framework
- Service Provider:
CycleServiceProviderfor seamless framework integration - Repository Pattern: Built-in repository pattern support with custom repositories
- Transaction Middleware: Automatic transaction handling for requests
- Entity Validation: Middleware for entity validation with custom rules
- Query Monitoring: Performance monitoring and query logging capabilities
- Health Checks: Database health monitoring integration
- Migration Support: Schema migration tools and commands
- Database Factory: Support for multiple database connections
- Type Safety: Full type safety with PHPStan Level 9 compliance
- Multiple Databases: Support for MySQL, PostgreSQL, SQLite, SQL Server
- Relationships: Full support for all Cycle ORM relationship types
- Migrations: Schema versioning and migration system
- Factories: Entity factories for testing and seeding
- Events: Database events and listeners
- Caching: Query result caching integration
- Debugging: Query debugging and profiling tools
- Commands: CLI commands for database operations
- Namespace:
PivotPHP\CycleORM - Framework: PivotPHP Core v1.0.0+
- Cycle ORM: v2.x compatibility
- PHP: 8.1+ with full 8.4 compatibility
- Standards: PSR-11, PSR-12 compliant
- Testing: Comprehensive test coverage
- Optimized Queries: Query optimization and caching
- Connection Pooling: Efficient database connection management
- Lazy Loading: Intelligent lazy loading of relationships
- Memory Management: Optimized memory usage for large datasets
- Complete integration guide
- API reference documentation
- Performance optimization guide
- Migration from other ORMs
- Best practices and examples
php vendor/bin/pivotphp cycle:entity User # Create entity
php vendor/bin/pivotphp cycle:migrate # Run migrations
php vendor/bin/pivotphp cycle:schema # Update schema
php vendor/bin/pivotphp cycle:status # Check statususe PivotPHP\Core\Core\Application;
use PivotPHP\CycleORM\CycleServiceProvider;
$app = new Application();
$app->register(new CycleServiceProvider());
// Use in routes
$app->get('/users', function (CycleRequest $request) {
$users = $request->getRepository(User::class)->findAll();
return $request->response()->json($users);
});This initial release provides a complete Cycle ORM integration for PivotPHP Framework, offering:
- Database Abstraction: Work with multiple database systems
- Type Safety: Full type safety and static analysis support
- Performance: Optimized for high-performance applications
- Developer Experience: Rich CLI tools and debugging capabilities
- Testing: Comprehensive test coverage and factories
Future releases will focus on:
- Additional database drivers
- Enhanced performance optimizations
- Advanced caching strategies
- Extended CLI tooling
- Community-requested features
For questions, issues, or contributions:
- GitHub: https://github.com/PivotPHP/pivotphp-cycle-orm
- Documentation: docs/
- Integration Guide: docs/integration-guide.md
- Examples: examples/
Current Version: v1.0.0
Release Date: July 7, 2025
Stability: Stable
Framework Requirement: PivotPHP Core v1.0.0+