Skip to content

v4.0.0-beta.1

Pre-release
Pre-release

Choose a tag to compare

@Naoray Naoray released this 12 Aug 11:01
· 2 commits to main since this release
v4.0.0-beta.1
109a511

First beta of v4.0.0 — the PHP 8.2+ modernization (#901).

Highlights:

  • PHP 8.2+ required; CI covers 8.2, 8.3, 8.4
  • All src/Types/ constants are now string-backed enums (PaymentStatus::Paid)
  • Typed resource properties and readonly value objects (Money, Address, OrderLine, …)
  • Generic return types on MollieApiClient::send() — your IDE infers the resource from the request class
  • Money::of() fluent builder, typed MockResponse factories
  • ExponentialRetryStrategy with jitter and HTTP 429 / Retry-After support
  • Test suite migrated to Pest v3

This is a pre-release for early adopters; expect breaking changes until 4.0.0 stable. Full details in the changelog and the upgrade guide.

Install:

composer require mollie/mollie-api-php:^4.0@beta

Feedback welcome on #901.