Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: PivotPHP/pivotphp-cycle-orm

🚀 PivotPHP Cycle ORM v1.0.1 - Release Notes

Choose a tag to compare

@code-cfernandes code-cfernandes released this 09 Jul 14:51

🚀 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

  • 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

Contributors

code-cfernandes
Assets 2
Loading

PivotPHP Cycle ORM v1.0.0 Release Notes

Choose a tag to compare

@code-cfernandes code-cfernandes released this 07 Jul 20:31

🗄️ 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

Loading

AltStyle によって変換されたページ (->オリジナル) /