NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #3399 most downloaded on Packagist
Capsule is a simple PSR-7 HTTP message and PSR-17 HTTP factory implementation.
Latest stable
3.1.1
Last release 15 days ago
06 Nov 2026
Release timing varies
gaps range from 2 weeks to 1.6 years
Most releases are documented
notes for 15 of 25 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
25 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
Fixed breaking change with array_find() function that was only introduced in PHP 8.4.
array_find() function that was only introduced in PHP 8.4.Fix PHP 8.4 deprecation implicit nullable argument by @8ctopus in https://github.com/nimbly/Capsule/pull/7
Full Changelog: https://github.com/nimbly/Capsule/compare/3.0...3.0.1
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Full Changelog: 3.0...3.0.1
This will be the last 2.x release of Capsule (barring security or bug fixes). Active feature development will be moved to the 3.x release.
This will be the last 2.x release of Capsule (barring security or bug fixes). Active feature development will be moved to the 3.x release.
psr/http-message 2.0Port number was always being returned in authority if a port number was supplied. This was breaking convention in *only* using port number if the port
In accordance with PSR, __toString() and getContents() methods on the ResourceStream will attempt to safely rewind the underlying stream.
__toString() and getContents() methods on the ResourceStream will attempt to safely rewind the underlying stream.MessageAbstract::withHeader() now treats header names as case insensitive and will correctly overwrite the header.
Psalm reported errors and issues
Nothing published for this version
Nothing published for this version
Nothing published for this version
Adding support for the recently adopted HTTP QUERY method (RFC 10008) in the HttpMethod enum.
QUERY method (RFC 10008) in the HttpMethod enum.Migrating ResponseStatus class and constants to an Enum type.
ResponseStatus class and constants to an Enum type.HttpMethod EnumResponseStatus::getPhrase() is now an instance method (it is no longer static.) With an instance of ResponseStatus you can call the getPhrase() method. Example:$status = ResponseStatus::NOT_FOUND;
$status->getPhrase();
Support for PHP 8.x, leveraging features from 8.0
createFromString method in StreamFactoryprovide property in composer file for psr/http-message-implementation and psr/http-factory-implementationUri::__toString() and Uri::getAuthority() methods, fixing long standing bugsNimbly\Capsule@) when making calls to fopenServerRequestFactory::createServerRequestFromPsr7() is now a public static method.
ServerRequestFactory::createServerRequestFromPsr7() is now a public static method.Helper methods on ServerRequest to access parsed body, query, and uploaded file parameters. See README for more information.
ServerRequest to access parsed body, query, and uploaded file parameters. See README for more information.ext-json no longer required.ResourceStream properly detaches as well as properly throwing RuntimeException on certain methods as described in interface.$request->withParsedBody($parsedBody);Removed `Response::isSuccessful()` - method is not listed in interface and "success" is too subjective.
Response::isSuccessful() - method is not listed in interface and "success" is too subjective.FileStream::getMetadata() no longer throws a RuntimeException if a meta data key is not found. Instead, as detailed in interface, it will return null.RuntimeException if the underlying resource cannot be read, written, or seek a position.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Custom Response reason phrases are now respected
Adding Factory::createServerRequestFromPsr7() method to convert any other PSR-7 ServerRequestInterface instance into a Capsule specific ServerRequest.
Factory::createServerRequestFromPsr7() method to convert any other PSR-7 ServerRequestInterface instance into a Capsule specific ServerRequest.None
Nothing published for this version
One column per quarter.