Skip to content

Releases: chillerlan/php-http-message-utils

2.2.2

26 Jul 16:12
Compare
Choose a tag to compare
  • some minor fixes & code cleanup
  • CI update (switched phan for phpstan, added phpcs)

2.2.1

20 Mar 17:08
Compare
Choose a tag to compare
  • MessageUtil: use decompress() instead of just getContents() to retrieve body contents in the following methods:
    • MessageUtil::decodeJSON()
    • MessageUtil::decodeXML()
    • MessageUtil::toString()
    • MessageUtil::toJSON()

2.2.0

15 Mar 21:59
Compare
Choose a tag to compare
  • added PSR-18 utility http clients
  • added MessageUtil:toJSON

2.1.1

09 Mar 21:07
Compare
Choose a tag to compare
  • HeaderUtil::normalize() (and its helpers) now remove CR and LF characters in header names and values (see CVE-2023-29197)

2.1.0

01 Mar 21:38
Compare
Choose a tag to compare
  • added PSR-7 ResponseInterface emitter: ResponseEmitterInterface, ResponseEmitterAbstract and SapiEmitter
  • added a RFC6265 Cookie implementation, as well as MessageUtil::setCookie() and MessageUtil::getCookiesFromHeader()
  • fixed array handling in HeaderUtil::normalize()

2.0.3

18 Feb 21:52
Compare
Choose a tag to compare
  • UriUtil::parseUrl(): return port as integer

2.0.2

15 Feb 19:29
Compare
Choose a tag to compare
  • fixed type error in HeaderUtil::trimValues()
  • added .gitattributes

2.0.1

15 Feb 17:59
Compare
Choose a tag to compare
  • explicit nullable types
  • return type fix for MessageUtil::setContentLengthHeader() and MessageUtil::setContentTypeHeader() (MessageInterface|RequestInterface|ResponseInterface|ServerRequestInterface instead of just MessageInterface)
  • cleanup
  • CI updates

2.0.0

02 Aug 16:00
Compare
Choose a tag to compare
  • PHP 8.1+
  • Cleaned up & moved some things
  • CI updates

1.1.0

12 Feb 14:33
Compare
Choose a tag to compare
  • branch out PHP 7.4 to v1.x-php7.4, dev-main is now PHP 8.1+
  • this & that