Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Http Message Laravel Package

psr/http-message

PSR-7 HTTP message interfaces for PHP (Request/Response, Streams, URIs, UploadedFiles). Defines common contracts only—no concrete implementation. Ideal for framework-agnostic middleware and libraries needing interoperable HTTP message types.

View on GitHub
Deep Wiki
Context7
1.0
0.11.0

This tag contains all updates since entering the second review of PSR-7. These include:

  • Clarifications to RequestInterface::withUri() specifying that changes MUST also update the Host header unless the $preserverHost flag is true.
  • Removal of the various getHeader*() method overrides in RequestInterface, as they are irrelevant with the above change.
  • Added verbiage to the RequestInterface class-level docblock indicating that constructors SHOULD attempt to set the Host header in order to ensure the message is valid on initialization.
  • RequestInterface::getHeaderLine() MUST return a string (null was allowed previously, which leads to ambiguity of return value).
  • ResponseInterface::getReasonPhrase() MUST return a string(null was allowed previously, which leads to ambiguity of return value).
  • ResponseInterface::withStatus() now sets the default value of the $reasonPhrase parameter to an empty string (to correspond to the above change).
  • UploadedFileInterface::move() was renamed to moveTo(), and the argument renamed to $targetPath; this clarifies intent for the method.
  • UriInterface::withPath() has clarifications in the docblock to indicate the four possible path types (empty, root path, relative path, domain-relative — or absolute — path).
0.10.1
0.10.0
  • StreamableInterface was renamed to StreamInterface; typehints were updated accordingly.
  • ServerRequestInterface::*FileParams() were renamed to *UploadedFiles(). They now expect and return array trees of a new interface, UploadedFileInterface.
  • UploadedFileInterface was added to provide compatibility between SAPI and non-SAPI environments with regards to handling upload files.
  • A number of clarifications were made on UriInterface with regards to URI component delimiters.
0.9.2
0.9.1
0.9.0
0.8.0
0.7.0
0.6.0

Immutability + URI interface

0.5.1
  • null is no longer allowed (per the ML; see also php-fig/fig-standards#367).
0.5.0
  • Refactors MessageInterface to only provide getters.
  • MessageInterface now defines getBody() to require that it return a StreamableInterface instance.
  • Removes Request and Response interfaces
  • Provides server-side interfaces:
    • IncomingRequestInterface, which provides accessors for HTTP properties and environment-specific items ($_SERVER, $_GET, $_POST, $_FILES, $_COOKIE, etc), and support for mutable "attributes".
    • OutgoingResponseInterface, which provides both accessors and mutators for all HTTP properties.
  • Provides client-side interfaces:
    • OutgoingRequestInterface, which provides accessors and mutators for all HTTP properties.
    • IncomingResponseInterface, which provides accessors for HTTP properties.
  • StreamableInterface removes attach().
0.4.0
0.3.0
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle