nyholm/psr7
A fast PHP7 implementation of PSR-7
1.8.2
273M downloads/mo
#154 most downloaded on composer
Nyholm/psr7
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Ships fairly regularly
a new release about every 5 months
Most releases are documented
notes for 20 of 24 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
24 releases · first in 2017
0 releases in the last 12 months
see the full history below
Release timeline
24 releases · Mar 2017 to Sep 2024Releases
latest 24-
1.8.209 Sep 2024Release notes
Open source →What's Changed
- Fix .gitattributes by @VincentLanglet in #250
- [PHP 8.4] Fixes for implicit nullability deprecation by @Ayesh in #255
New Contributors
- @VincentLanglet made their first contribution in #250
- @Ayesh made their first contribution in #255
Full Changelog: 1.8.1...1.8.2
-
1.8.113 Nov 2023Release notes
Open source →What's Changed
- Fix error handling in Stream::getContents() by @nicolas-grekas in #252
Full Changelog: 1.8.0...1.8.1
-
1.8.002 May 2023Release notes
Open source →What's Changed
- README.md: add badges for GH Actions by @alexisLefebvre in #237
- Deprecate HttplugFactory and make dependency on php-http/message-factory optional by @murat11 in #243
New Contributors
- @alexisLefebvre made their first contribution in #237
- @murat11 made their first contribution in #243
Full Changelog: 1.7.0...1.8.0
Release notes
Open source →- Deprecate HttplugFactory, use Psr17Factory instead
- Make depencendy on php-http/message-factory optional
-
1.7.020 Apr 2023Release notes
Open source →What's Changed
- chore: drop php 7.1 support by @simPod in #226
- Allow psr/http-message v2 by @nicolas-grekas in #234
- Use zval storage for Stream instances created from strings by @nicolas-grekas in #230
- Improve performance of creating streams from strings by @nicolas-grekas in #241
- Update changelog by @nicolas-grekas in #240
Full Changelog: 1.6.1...1.7.0
Release notes
Open source →- Bump to PHP 7.2 minimum
- Allow psr/http-message v2
- Use copy-on-write for streams created from strings
-
1.6.117 Apr 2023Release notes
Open source →Security fix for header validation. See GHSA-wjfc-pgfp-pv9c
What's Changed
See change log for changes.
What's Changed
- [CI] Remove scutinizer by @Nyholm in #231
- [CI] Just some code style changes by @Nyholm in #232
- [CI] Remove badge for Travis by @Nyholm in #233
- [CS] native_function_invocation by @Nyholm in #235
- Added change log for 1.6.1 by @Nyholm in #236
Full Changelog: 1.6.0...1.6.1
-
1.6.009 Apr 2023Release notes
Open source →What's Changed
See change log for changes.
New Contributors
- @vanodevium made their first contribution in #211
- @GrahamCampbell made their first contribution in #212
- @simPod made their first contribution in #224
Full Changelog: 1.5.1...1.6.0
Release notes
Open source →Changed
- Seek to the begining of the string when using Stream::create()
- Populate ServerRequest::getQueryParams() on instantiation
- Encode reserved characters in userinfo in Uri
- Normalize leading slashes for Uri::getPath()
- Make Stream's constructor public
- Add some missing type checks on arguments
-
1.5.122 Jun 2022 -
1.5.002 Feb 2022Release notes
Open source →Added
- Add explicit
@return mixed - Add explicit return types to HttplugFactory
Fixed
- Improve error handling with streams
- Add explicit
-
1.4.102 Jul 2021Release notes
Open source →Fixed
Psr17Factory::createStreamFromFile,UploadedFile::moveTo, andUploadedFile::getStreamno longer throwValueErrorin PHP 8.
-
1.4.018 Feb 2021 -
1.3.214 Nov 2020Release notes
Open source →Fixed
Stream::read()must not return boolean.- Improved exception message when using wrong HTTP status code.
-
1.3.113 Jun 2020 -
1.3.023 May 2020Release notes
Open source →Added
- Make Stream::__toString() compatible with throwing exceptions on PHP 7.4.
Fixed
- Support for UTF-8 hostnames
- Support for numeric header names
-
1.2.105 Sep 2019 -
1.2.022 Aug 2019Release notes
Open source →Changed
- Change minimal port number to 0 (unix socket)
- Updated
Psr17Factory::createResponseto respect the specification. If second argument is not used, a standard reason phrase. If an empty string is passed, then the reason phrase will be empty.
Fixed
- Check for seekable on the stream resource.
- Fixed the
Response::$reasonshould never be null.
-
1.1.016 Feb 2019Release notes
Open source →Added
- Improved performance
- More tests for
UploadedFileandHttplugFactory
Removed
- Dead code
-
1.0.102 Sep 2018Release notes
Open source →Fixed
- Handle
fopenfailing in createStreamFromFile according to PSR-7. - Reduce execution path to speed up performance.
- Fixed typos.
- Code style.
- Handle
-
1.0.002 Aug 2018Release notes
Open source →Added
- Support for final PSR-17 (HTTP factories). (
Psr17Factory) - Support for numeric header values.
- Support for empty header values.
- All classes are final
HttplugFactorythat implements factory interfaces from HTTPlug.
Changed
ServerRequestdoes not extendRequest.
Removed
- The HTTPlug discovery strategy was removed since it is included in php-http/discovery 1.4.
UploadedFileFactory()was removed in favor forPsr17Factory.ServerRequestFactory()was removed in favor forPsr17Factory.StreamFactory,UriFactory, abdMessageFactory. UseHttplugFactoryinstead.ServerRequestFactory::createServerRequestFromArray,ServerRequestFactory::createServerRequestFromArraysandServerRequestFactory::createServerRequestFromGlobals. Please use the newnyholm/psr7-serverinstead.
- Support for final PSR-17 (HTTP factories). (
-
0.3.006 Feb 2018Release notes
Open source →Added
- Return types.
- Many
InvalidArgumentExceptions are thrown when you use invalid arguments. - Integration tests for
UploadedFileandServerRequest.
Changed
- We dropped PHP7.0 support.
- PSR-17 factories have been marked as internal. They do not fall under our BC promise until PSR-17 is accepted.
UploadedFileFactory::createUploadedFiledoes not accept a string file path.
-
0.2.322 May 2017 -
0.2.222 May 2017Nothing published for this version
-
0.2.114 May 2017Nothing published for this version
-
0.2.011 Apr 2017Nothing published for this version
-
0.1.011 Mar 2017Nothing published for this version