Skip to content

Releases: rubricate/canvas

v4.0.0 - Modern PHP 8.2+ Architecture & Clean API Refactor

Choose a tag to compare

@estefanionsantos estefanionsantos released this 20 Aug 20:34

We are excited to announce v4.0.0 of rubricate/canvas! This major release brings a complete modern refactor, adopting PHP 8.2+ standards, strict typing, clean architecture, and a brand-new fluent API for image manipulation.

🚀 What's New

  • PHP 8.2+ Architecture: Upgraded requirements to modern PHP standards with strict typing (declare(strict_types=1);) and constructor property promotion.
  • Refactored Core & Strategies: Modular design pattern separating operations into dedicated classes (ResizeOperationCanvas, CropOperationCanvas, WatermarkOperationCanvas, TextOperationCanvas, and FilterOperationCanvas).
  • Value Object Support: Added ColorCanvas for robust RGB, Alpha, and Hexadecimal color parsing.
  • Flexible Anchoring: Added PositionCalculatorCanvas for precise geometric relative alignment (top_left, middle_center, bottom_right, etc.).
  • Format Exports: Support for WebP and AVIF output formats along with JPG, PNG, and GIF.
  • Typed Exceptions: Introduced ExceptionCanvas for better error handling across applications.

⚠️ Breaking Changes

  • Upgraded minimum required PHP version to 8.2.
  • Updated namespace standards and class method signatures to follow the new facade orchestration.

📚 Documentation & Guidelines

Full usage examples and interactive documentation are available at:
👉 https://rubricate.github.io/components/canvas/


Full Changelog: https://github.com/rubricate/canvas/commits/v4.0.0