Releases: bkdotcom/HttpMessage
Releases · bkdotcom/HttpMessage
v2.3
- tested on php 7.2 - 8.4
- Added
ServerRequestExtendedInterface&ServerRequestExtended(Extends standard server request with helpful methods) - Now includes PSR-17 (Factory) implementation. (createServerRequest returns ServerRequestExtended instance)
- ServerRequest -
getParsedBody()now done on demand vs in when constructing- xml now parsed by default
- new
registerMediaTypeParser()method add custom parser or override existing parser
ServiceRequest::fromGlobals()andHttpFoundationBridge::createRequest()now returnServerRequestExtendedinstancewithQueryParams(): allow scalar and null values
v1.3
- tested on php 5.4 - 8.4
- Added
ServerRequestExtendedInterface&ServerRequestExtended(Extends standard server request with helpful methods) - Now includes PSR-17 (Factory) implementation. (createServerRequest returns ServerRequestExtended instance)
- ServerRequest -
getParsedBody()now done on demand vs in when constructing- xml now parsed by default
- new
registerMediaTypeParser()method add custom parser or override existing parser
ServiceRequest::fromGlobals()andHttpFoundationBridge::createRequest()now returnServerRequestExtendedinstancewithQueryParams(): allow scalar and null values
v3.0
This version supports psr/http-message ^1.1 || ^2.0 and php >= 8.0 (return type-hint of static when applicable)
| Version | http-message | php | note |
|---|---|---|---|
| 3.x | ^1.1 | ^2.0 | >= 8.0 | static returns |
| 2.x | ^1.1 | ^2.0 | >= 7.2 | |
| 1.x | ~1.0.1 | >= 5.4 |
Changes:
HttpFoundationBridgeclass now found under Utilities namespace- general maintenance
v2.0
This version supports psr/http-message ^1.1 || ^2.0 and php >= 7.2
| Version | http-message | php | note |
|---|---|---|---|
| 3.x | ^1.1 | ^2.0 | >= 8.0 | static returns |
| 2.x | ^1.1 | ^2.0 | >= 7.2 | |
| 1.x | ~1.0.1 | >= 5.4 |
Changes:
HttpFoundationBridgeclass now found under Utilities namespace- general maintenance
v1.2.1
Version supporting psr/http-message 1.0.1 and php >= 5.4
| Version | http-message | php | note |
|---|---|---|---|
| 3.x | ^1.1 | ^2.0 | >= 8.0 | static returns |
| 2.x | ^1.1 | ^2.0 | >= 7.2 | |
| 1.x | ~1.0.1 | >= 5.4 |
Changes:
- fix "name already in use" error occurring in HttpFoundationBridge utility (for php < 7.0)
v1.2
Version supporting psr/http-message 1.0.1 and php >= 5.4
| Version | http-message | php | note |
|---|---|---|---|
| 3.x | ^1.1 | ^2.0 | >= 8.0 | static returns |
| 2.x | ^1.1 | ^2.0 | >= 7.2 | |
| 1.x | ~1.0.1 | >= 5.4 |
Changes:
- General maintenance
- Psalm / Code-quality improvements
- Some refactoring:
HttpFoundationBridgeclass now found under Utilities namespace- New ParseStr Util - parse URL-encoded string (query / post-body) without converting "." and " " (spaces) in keys
- Remove AbstractServerRequest