Releases: PivotPHP/pivotphp-cycle-orm
Releases Β· PivotPHP/pivotphp-cycle-orm
π PivotPHP Cycle ORM v1.0.1 - Release Notes
π Performance & Compatibility Update
This release focuses on performance optimizations, cross-platform compatibility, and code quality improvements following the PivotPHP Core v1.1.0 upgrade.
π Updated
- 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
π Added
- 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
π§ Fixed
- 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
ποΈ Refactored
- 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
π Performance Improvements
- 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
π§ͺ Testing Enhancements
- 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
π Documentation
- 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
π Technical Details
- 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
π― Benefits
- 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
What's Changed
- Compatibility new release core by @CAFernandes in #2
New Contributors
- @CAFernandes made their first contribution in #2
Full Changelog: v1.0.0...v1.0.1
PivotPHP Cycle ORM v1.0.0 Release Notes
ποΈ PivotPHP Cycle ORM v1.0.0
Overview
First stable release of PivotPHP Cycle ORM integration - a robust, type-safe ORM extension for PivotPHP Core.
Key Features
- Seamless Integration: Works perfectly with PivotPHP Core
- Type Safety: Full PHPStan Level 9 compliance
- Repository Pattern: Built-in repository pattern support
- Migration Support: Database migrations out of the box
- Performance Monitoring: Query logging and profiling
- Middleware Integration: Transaction and health check middleware
Installation
composer require pivotphp/cycle-ormQuick Start
<?php
use PivotPHP\Core\Core\Application;
use PivotPHP\CycleORM\CycleServiceProvider;
use PivotPHP\CycleORM\Middleware\CycleMiddleware;
$app = new Application();
// Register Cycle ORM
$app->register(new CycleServiceProvider($app));
$app->use(new CycleMiddleware($app));
// Use in routes
$app->get('/users', function($req, $res) {
$users = $req->orm->getRepository(User::class)->findAll();
$res->json($users);
});
$app->run();π¦ Package Information
PivotPHP Core
- Package: pivotphp/core
- Version: 1.0.0
- License: MIT
- PHP: ^8.1
- Repository: https://github.com/CAFernandes/pivotphp-core
PivotPHP Cycle ORM
- Package: pivotphp/cycle-orm
- Version: 1.0.0
- License: MIT
- PHP: ^8.1
- Repository: https://github.com/CAFernandes/pivotphp-cycle-orm