PackageTrack
Sign in Get early access

nimbly/capsule

Capsule is a simple PSR-7 HTTP message and PSR-17 HTTP factory implementation.

3.0.1 4.4M downloads/mo #2733 most downloaded on Packagist nimbly/Capsule

What this package is like to depend on

Last release 1 years ago

no release in 18 months

Release timing varies

gaps range from 2 weeks to 1.3 years

Some releases are documented

notes for 10 of 23 stable releases

Nothing withdrawn

no release was ever pulled

7 years old

23 releases · first in 2019

0 releases in the last 12 months

see the full history below

Release timeline

23 releases · Apr 2019 to Feb 2025
2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 23
  1. 3.0.1 27 Feb 2025
    Release notes

    Updates

    • Adding HttpMethod string backed enum for HTTP methods. by @brentscheffler in #6
    • Fix PHP 8.4 deprecation implicit nullable argument by @8ctopus in #7
    • Adding test coverage for PHP 8.4.
    • Bumping dev dependencies.

    Full Changelog: 3.0...3.0.1

    Open source →
  2. 2.0.2 26 May 2024
    Release notes

    Note

    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.

    Fixes

    • Fixed uploaded file moving test for Windows

    Updates

    • Adding support for psr/http-message 2.0
    Open source →
  3. 2.0.1 29 May 2023
    Release notes

    Fixes

    • Port 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 is non-standard for the given scheme (http vs https.)
    • Fixing formatting issues in code.
    Open source →
  4. 1.1.2 17 Jun 2021
    Release notes

    Fixes

    • In accordance with PSR, __toString() and getContents() methods on the ResourceStream will attempt to safely rewind the underlying stream.
    Open source →
  5. 1.1.1 22 Feb 2021
    Release notes

    Fixes

    • MessageAbstract::withHeader() now treats header names as case insensitive and will correctly overwrite the header.
    Open source →
  6. 0.8.1 07 Oct 2019

    Nothing published for this version

  7. 0.6.2 03 Sep 2019

    Nothing published for this version

  8. 0.6.1 27 Aug 2019

    Nothing published for this version

  9. 0.4.1 25 May 2019

    Nothing published for this version

  10. 3.0 21 Sep 2024
    Release notes

    Updates

    • Migrating ResponseStatus class and constants to an Enum type.
    • Creating an HttpMethod Enum
    • Adding class and constructor comments.
    • Revamping file upload code - specifically on parsing the $_FILES superglobal.
      • Supporting nested file uploads
    • Expanded unit tests and coverage

    Breaking Changes

    • ResponseStatus::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();
    Open source →
  11. 2.0 18 Oct 2022
    Release notes

    Features

    • Support for PHP 8.x, leveraging features from 8.0
    • Adding createFromString method in StreamFactory
    • Adding provide property in composer file for psr/http-message-implementation and psr/http-factory-implementation
    • A lot of code and comment cleanup, standardizing formatting
    • Stricter type hinting in constructors and methods where possible (using union type)
    • Tightening up Uri::__toString() and Uri::getAuthority() methods, fixing long standing bugs

    Breaking changes

    • Removing support for PHP 7.x
    • Moving namespace to Nimbly\Capsule
    • Removing warning suppression (@) when making calls to fopen
    Open source →
  12. 1.1 03 Jan 2021
    Release notes

    Features

    • Adding PHP 8.0 support.

    Breaking changes

    • Dropping PHP 7.2 support.
    • ServerRequestFactory::createServerRequestFromPsr7() is now a public static method.
    Open source →
  13. 1.0 10 Mar 2020
    Release notes

    Updates

    • Helper methods on ServerRequest to access parsed body, query, and uploaded file parameters. See README for more information.
    • Full PSR-17 Factory support.
    • Query params automatically merged into ServerRequest from URI instance.
    • ext-json no longer required.
    • Additional test coverage across entire package.

    Fixes

    • ResourceStream properly detaches as well as properly throwing RuntimeException on certain methods as described in interface.

    Breaking changes

    • Response constructor signature change.
    • ServerRequest::createFromGlobals() moved to ServerRequestFactory::createFromGlobals().
    • FileStream class renamed to ResourceStream.
    • ServerRequest will no longer attempt to automatically parse the request body. Best practice is to create a Middleware layer to handle request body parsing and assigning to Request instance via $request->withParsedBody($parsedBody);
    Open source →
  14. 0.9 09 Oct 2019

    Nothing published for this version

  15. 0.7 17 Sep 2019

    Nothing published for this version

  16. 0.6 22 Aug 2019

    Nothing published for this version

  17. 0.5 07 Aug 2019

    Nothing published for this version

  18. 0.4 25 May 2019

    Nothing published for this version

  19. 0.3 10 Apr 2019

    Nothing published for this version

  20. 0.2 05 Apr 2019

    Nothing published for this version

  21. 0.11 05 Nov 2019
    Release notes

    Fixes

    • Custom Response reason phrases are now respected
    • Better support for static analyzers methods that return new instance of self
    Open source →
  22. 0.10 19 Oct 2019

    Nothing published for this version

  23. 0.1 05 Apr 2019

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive