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, typedMockResponsefactoriesExponentialRetryStrategywith jitter and HTTP 429 /Retry-Aftersupport- 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.