Releases: rubricate/canvas
Releases · rubricate/canvas
Release list
v4.0.0 - Modern PHP 8.2+ Architecture & Clean API Refactor
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, andFilterOperationCanvas). - Value Object Support: Added
ColorCanvasfor robust RGB, Alpha, and Hexadecimal color parsing. - Flexible Anchoring: Added
PositionCalculatorCanvasfor 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
ExceptionCanvasfor 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