php-http/message
HTTP Message related tools
1.16.2
288M downloads/mo
#242 most downloaded on Packagist
php-http/message
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 4 weeks to 1.2 years
Nearly every release is documented
notes for 29 of 31 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
31 releases · first in 2015
0 releases in the last 12 months
see the full history below
Release timeline
31 releases · Dec 2015 to Oct 2024Releases
latest 31-
1.16.202 Oct 2024Release notes
Open source →- Avoid error when reading 0 bytes from BufferedStream.
- Test with PHP 8.3 and 8.4.
Release notes
Open source →- Avoid error when reading 0 bytes from BufferedStream.
- Test with PHP 8.3 and 8.4.
-
1.16.107 Mar 2024 -
1.16.017 May 2023Release notes
Open source →- Remove direct dependency on
php-http/message-factoryas it is only needed for the deprecated Httplug factories.
Upgrade to PSR-17 message factories provided by your HTTP client implementation.
If you need the Httplug factories for the time being, you cancomposer require php-http/message-factoryin your application.
Release notes
Open source →- Remove direct dependency on
php-http/message-factoryas it is only needed for the deprecated Httplug factories. Upgrade to PSR-17 message factories provided by your HTTP client implementation. If you need the Httplug factories for the time being, you cancomposer require php-http/message-factoryin your application.
- Remove direct dependency on
-
1.15.010 May 2023Release notes
Open source →If you use the decorator classes, you might need to adjust your code to the parameter and return type declarations added in PSR-7
- Actually make compatible with PSR-7 1.1 and 2.0
- Drop support for PHP 7.1
Release notes
Open source →If you use the decorator classes, you might need to adjust your code to the parameter and return type declarations added in PSR-7
- Actually make compatible with PSR-7 1.1 and 2.0
- Drop support for PHP 7.1
-
1.14.014 Apr 2023Release notes
Open source →This release is not actually compatible with PSR-7 1.1 or 2.0
- Allow installation with http-message (PSR-7) version 2 in addition to version 1.
- Support for PHP 8.2
Release notes
Open source →This release is not actually compatible with PSR-7 1.1 or 2.0
- Allow installation with http-message (PSR-7) version 2 in addition to version 1.
- Support for PHP 8.2
-
1.13.011 Feb 2022Release notes
Open source →- Added
Formatter::formatResponseForRequest()to allow the formatter to get context from the request to decide what of the response to output. - Deprecated
Formatter::formatResponse()in favor of the newformatResponseForRequestmethod.
Release notes
Open source →- Added
Formatter::formatResponseForRequest()to allow the formatter to get context from the request to decide what of the response to output. - Deprecated
Formatter::formatResponse()in favor of the newformatResponseForRequestmethod.
- Added
-
1.12.029 Aug 2021Release notes
Open source →- Added support for adjusting binary detection regex in FullHttpMessageFormatter
Release notes
Open source →- Added support for adjusting binary detection regex in FullHttpMessageFormatter.
-
1.11.203 Aug 2021Release notes
Open source →- Support GuzzleHttp/Psr7 version 2.0 in the (deprecated) GuzzleStreamFactory.
Release notes
Open source →- Support GuzzleHttp/Psr7 version 2.0 in the (deprecated) GuzzleStreamFactory.
-
1.11.124 May 2021Release notes
Open source →- Support GuzzleHttp/Psr7 version 2.0 in the (deprecated) GuzzleUriFactory.
Release notes
Open source →- Support GuzzleHttp/Psr7 version 2.0 in the (deprecated) GuzzleUriFactory.
-
1.11.001 Feb 2021Release notes
Open source →-
Migrated from
zendframework/zend-diactorostolaminas/laminas-diactoros.
Users are encouraged to update their dependencies by simply replacing the Zend package with the Laminas package.
Due to the laminas-zendframework-brige, BC changes
are not expected and legacy code does not need to be refactored (though it is
recommended and simple). -
The diactoros factories of
php-http/messagewill return objects from theLaminas\Diactoros\namespace, if
the respective classes are available via autoloading, but continue to return objects fromZend\Diactoros\
namespace otherwise. -
Allow to specify the hashing algorithm for WSSE authentication.
Release notes
Open source →-
Migrated from
zendframework/zend-diactorostolaminas/laminas-diactoros. Users are encouraged to update their dependencies by simply replacing the Zend package with the Laminas package. Due to the laminas-zendframework-brige, BC changes are not expected and legacy code does not need to be refactored (though it is recommended and simple). -
The diactoros factories of
php-http/messagewill return objects from theLaminas\Diactoros\namespace, if the respective classes are available via autoloading, but continue to return objects fromZend\Diactoros\namespace otherwise. -
Allow to specify the hashing algorithm for WSSE authentication.
-
-
1.10.011 Nov 2020 -
1.9.113 Oct 2020Release notes
Open source →- Improved detection of binary stream to not consider newlines, carriage return or tabs as binary.
-
1.9.017 Aug 2020Release notes
Open source →- Omitted binary body in FullHttpMessageFormatter and CurlCommandFormatter.
[binary stream omitted]will be shown instead.
Added
- New Header authentication method for arbitrary header authentication.
- Omitted binary body in FullHttpMessageFormatter and CurlCommandFormatter.
-
1.8.005 Aug 2019Release notes
Open source →Changed
- Raised minimum PHP version to 7.1
Fixed
- Fatal error on
CurlCommandFormatterwhen body is larger thanescapeshellargallowed length. - Do not read stream in message formatter if stream is not seekable.
-
1.7.201 Nov 2018Release notes
Open source →Fixed
- FilteredStream uses
@trigger_errorinstead of throwing exceptions to not break careless users. You still need to fix your stream code to respectisSeekable. Seeking does not work as expected, and we will add exceptions in version 2.
- FilteredStream uses
-
v1.7.129 Oct 2018 -
1.7.015 Aug 2018Release notes
Open source →Fixed
- Fix CurlCommandFormatter for binary request payloads
- Fix QueryParam authentication to assemble proper URL regardless of PHP
arg_separator.outputdirective - Do not pass
nullparameters toClue\StreamFilter\fun
Changed
- Dropped tests on HHVM
-
1.6.005 Jul 2017Release notes
Open source →Added
- CookieUtil::parseDate to create a date from cookie date string
Fixed
- Fix curl command of CurlFormatter when there is an user-agent header
-
1.5.014 Feb 2017Release notes
Open source →Added
- Check for empty string in Stream factories
- Cookie::createWithoutValidation Static constructor to create a cookie. Will not perform any attribute validation during instantiation.
- Cookie::isValid Method to check if cookie attributes are valid.
Fixed
- FilteredStream::getSize returns null because the contents size is unknown.
- Stream factories does not rewinds streams. The previous behavior was not coherent between factories and inputs.
Deprecated
- FilteredStream::getReadFilter The read filter is internal and should never be used by consuming code.
- FilteredStream::getWriteFilter We did not implement writing to the streams at all. And if we do, the filter is an internal information and should not be used by consuming code.
-
v1.4.116 Dec 2016Release notes
Open source →Fixed
- Cookie::matchPath Cookie with root path (
/) will not match sub path (e.g./cookie).
- Cookie::matchPath Cookie with root path (
-
v1.4.020 Oct 2016Release notes
Open source →Added
- Message, stream and URI factories for Slim Framework
- BufferedStream that allow you to decorate a non-seekable stream with a seekable one.
- cUrlFormatter to be able to redo the request with a cURL command
-
v1.3.115 Jul 2016Release notes
Open source →Fixed
- FullHttpMessageFormatter will not read from streams that you cannot rewind (non-seekable)
- FullHttpMessageFormatter will not read from the stream if $maxBodyLength is zero
- FullHttpMessageFormatter rewinds streams after they are read
-
v1.3.014 Jul 2016Release notes
Open source →Added
- FullHttpMessageFormatter to include headers and body in the formatted message
Fixed
- #41: Response builder broke header value
-
v1.2.029 Mar 2016Release notes
Open source →Added
- The RequestMatcher is built after the Symfony RequestMatcher and separates scheme, host and path expressions and provides an option to filter on the method
- New RequestConditional authentication method using request matchers
- Add automatic basic auth info detection based on the URL
Changed
- Improved ResponseBuilder
Deprecated
- RegexRequestMatcher, use RequestMatcher instead
- Matching authenitcation method, use RequestConditional instead
-
v1.1.025 Feb 2016Release notes
Open source →Added
- Add a request matcher interface and regex implementation
- Add a callback request matcher implementation
- Add a ResponseBuilder, to create PSR7 Response from a string
Fixed
- Fix casting string on a FilteredStream not filtering the output
-
v1.0.027 Jan 2016Nothing published for this version
-
v0.2.131 Dec 2015Nothing published for this version
-
0.2.029 Dec 2015Release notes
Open source →Added
- Autoregistration of stream filters using Composer autoload
- Cookie
- Apigen configuration
-
v0.1.226 Dec 2015Release notes
Open source →Added
- Request and response factory bindings
Fixed
- Chunk filter namespace in Dechunk stream
-
v0.1.125 Dec 2015 -
v0.1.024 Dec 2015Release notes
Open source →Added
- Authentication
- Encoding
- Message decorator
- Message factory (Guzzle, Diactoros)