Skip to content

Releases: rubricate/asset

v4.0.0 - Immutable Asset Component & Modern PHP 8.2+ Architecture

Choose a tag to compare

@estefanionsantos estefanionsantos released this 19 Sep 03:25

We are excited to announce v4.0.0! This major release introduces AbstractAsset, a modular and immutable asset management component designed for PHP 8.2+ applications, offering seamless cache-busting and flexible HTML tag generation.

What's New

  • Immutable AbstractAsset Component: Base abstract class for versioned static assets (.css, .js, and images) without rigid directory constraints.
  • Automatic Cache Busting: Dynamic query string versioning based on filemtime for efficient client-side cache control.
  • Widget Integration: Direct orchestration with CssFileWidget, JsFileWidget, and ImageWidget.
  • Declarative Customization: Override default paths, tabulations, line breaks, and cache-busting keys directly via subclass definitions.
  • PHP 8.2+ Native Architecture: Strict typing (declare(strict_types=1);), constructor property promotion, and nullish coalescing logic.

Breaking Changes

  • Raised minimum required PHP version to 8.2.
  • Updated package namespace to align with the latest Rubricate standards.

Documentation

Detailed guidelines and usage docs are available at:
👉 https://rubricate.github.io/