Skip to content

Releases: bkdotcom/HttpMessage

v2.3

09 Sep 16:12

Choose a tag to compare

  • 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() and HttpFoundationBridge::createRequest() now return ServerRequestExtended instance
  • withQueryParams(): allow scalar and null values

v1.3

09 Sep 16:11

Choose a tag to compare

  • 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() and HttpFoundationBridge::createRequest() now return ServerRequestExtended instance
  • withQueryParams(): allow scalar and null values

v3.0

12 Jul 15:49

Choose a tag to compare

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:

  • HttpFoundationBridge class now found under Utilities namespace
  • general maintenance

v2.0

12 Jul 15:47

Choose a tag to compare

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:

  • HttpFoundationBridge class now found under Utilities namespace
  • general maintenance

v1.2.1

12 Jul 19:45

Choose a tag to compare

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

12 Jul 15:44

Choose a tag to compare

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:
    • HttpFoundationBridge class now found under Utilities namespace
    • New ParseStr Util - parse URL-encoded string (query / post-body) without converting "." and " " (spaces) in keys
    • Remove AbstractServerRequest

v1.1

18 Dec 05:25

Choose a tag to compare

PHP 8.3 compatibility
new : Uri::fromGlobals() method
ServerRequest::fromGlobals() - new $parseStrOpts param
new Utility/ContentType::xxx constants for common mime types
new Utility/Response::emit()
UriUtils now Utility/Uri

v1.0

10 Nov 22:17

Choose a tag to compare

Initial release