Skip to content

πŸš€ v2.0.0 - Enterprise-Grade HTTP Configuration & Laravel 11+ Compatibility

Choose a tag to compare

@alecgarcia alecgarcia released this 18 Sep 17:36
f967476

πŸš€ Lunar-Fortis v2.0.0 - Major Release

✨ What's New

πŸ”§ Enhanced HTTP Configuration System

  • Multi-Status Code Retry Logic: Handles 429, 502, 503, 504 status codes
  • Exponential Backoff: Configurable backoff strategies with maximum delay caps
  • Connection Recovery: Intelligent network error handling
  • Environment-Specific Tuning: Different configurations for dev, staging, and production

πŸ“ˆ Code Quality Improvements

  • βœ… Fixed all PHPStan issues (101β†’0 errors)
  • βœ… Applied modern PHP practices (constructor property promotion)
  • βœ… Simplified complex logic (Terminal needsSync method: 23β†’11 lines)
  • βœ… Enhanced type safety with proper annotations

πŸ”€ Laravel 11+ Compatibility

  • βœ… Full Laravel 11 & 12 support
  • βœ… PHP 8.3 & 8.4 compatibility
  • βœ… Comprehensive test coverage (150 tests, 529 assertions)
  • βœ… Log facade compatibility fixed for Laravel 11+

πŸ”§ New Environment Variables

# Enterprise HTTP Configuration
FORTIS_HTTP_TIMEOUT=30                      # Request timeout in seconds
FORTIS_HTTP_RETRY_ATTEMPTS=3                # Number of retry attempts
FORTIS_HTTP_RETRY_DELAY=1000                # Delay between retries (ms)
FORTIS_HTTP_RETRY_CONNECTION=true           # Retry on connection errors
FORTIS_HTTP_RETRY_STATUS_CODES="429,502,503,504"  # Status codes to retry on
FORTIS_HTTP_RETRY_EXPONENTIAL=false         # Use exponential backoff
FORTIS_HTTP_RETRY_MAX_DELAY=10000          # Max delay with exponential backoff (ms)

πŸ”„ Breaking Changes

  • Laravel 10 support dropped - requires Laravel 11+
  • PHP 8.2 support dropped - requires PHP 8.3+

πŸ“‹ Migration Guide

From v1.x to v2.0

  1. Update PHP: Ensure PHP 8.3+
  2. Update Laravel: Ensure Laravel 11+
  3. Update dependencies: Run composer update
  4. Optional: Configure new HTTP retry settings

New Testing Commands

composer test              # Run all tests
composer test-coverage     # Run with coverage  
composer test-parallel     # Run in parallel
composer quality           # Run format, analyse, test

🎯 Ready for Production

This release transforms Lunar-Fortis into an enterprise-grade payment integration with:

  • Bulletproof HTTP handling for mission-critical applications
  • Professional code quality meeting industry standards
  • Comprehensive documentation for team development
  • Real-world tested reliability and resilience

Perfect for high-traffic e-commerce, mission-critical POS systems, and enterprise payment processing.

πŸ€– Generated with Claude Code