Skip to content

Conversation

@jmcdaniel-cl
Copy link

@jmcdaniel-cl jmcdaniel-cl commented Jun 23, 2025

Description

This PR upgrades the SDK to support PSR HTTP Message ^2.0 and updates related dependencies:

  • Upgraded nimbly/shuttle to 2.0 and nimbly/capsule to 3.0.1 for PSR-7 v2.0 compatibility.
  • Updated minimum PHP version to 8.2 to match new dependency requirements.
  • Refactored namespaces for Shuttle and Capsule classes to Nimbly\Shuttle\Shuttle and Nimbly\Capsule\Request\Response.
  • Adjusted test mocks for new constructor signatures in Capsule.
  • Replaced hardcoded HTTP status codes with ResponseStatus enum constants for improved readability.
  • All tests pass and have been run multiple times to confirm stability.

This update ensures the SDK is compatible with the latest PSR standards and modern PHP versions, while preserving existing coding conventions.

- Update dependencies: nimbly/capsule (^3.0), nimbly/shuttle (^2.0), psr/http-message (^2.0)
- Bump minimum PHP version to 8.2
- Update all class references to new namespaces:
  - \Nimbly\Shuttle\Shuttle
  - \Nimbly\Capsule\Request
  - \Nimbly\Capsule\Response
  - \Nimbly\Capsule\ResponseStatus
  - \Nimbly\Shuttle\Handler\MockHandler
- Update test mocks and HTTP client instantiation for new APIs
- Replace hardcoded HTTP status codes with ResponseStatus constants
- Maintain project coding standard with leading backslashes for built-in functions
- All tests passing under new requirements

BREAKING CHANGE: Requires PHP 8.2+ and PSR HTTP Message 2.0
 + updated readme to reflect changes made as well as fix some typos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant