Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: PivotPHP/pivotphp-cycle-orm

πŸš€ PivotPHP Cycle ORM v1.0.1 - Release Notes

09 Jul 14:51

Choose a tag to compare

πŸš€ 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 EnvironmentHelper to 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.sh for Unix/Linux/macOS
    • scripts/test-coverage.bat for Windows CMD
    • scripts/test-coverage.ps1 for PowerShell
    • scripts/test-coverage.php for 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

New Contributors

Full Changelog: v1.0.0...v1.0.1

PivotPHP Cycle ORM v1.0.0 Release Notes

07 Jul 20:31

Choose a tag to compare

πŸ—„οΈ 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-orm

Quick 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

PivotPHP Cycle ORM