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

Laminas Diactoros Laravel Package

laminas/laminas-diactoros

PSR-7 HTTP message implementation (ServerRequest, Request, Response, Stream, UploadedFile, Uri) for PHP. Includes factories and utilities for creating and normalizing requests/responses, with strong type coverage and interoperability with PSR-17/PSR-15.

View on GitHub
Deep Wiki
Context7

Factories

PSR-17 defines factory interfaces for creating PSR-7 instances. As of version 2.0.0, Diactoros supplies implementations of each as follows:

  • Laminas\Diactoros\RequestFactory
  • Laminas\Diactoros\ResponseFactory
  • Laminas\Diactoros\ServerRequestFactory
  • Laminas\Diactoros\StreamFactory
  • Laminas\Diactoros\UploadedFileFactory
  • Laminas\Diactoros\UriFactory

The ServerRequestFactory continues to define the static method fromGlobals(), but also serves as a PSR-17 implementation.

These classes may be used as described in the specification document for the purpose of creating Diactoros instances that fulfill PSR-7 typehints.

Autoregistration of factories

  • Since 2.3.0

When installing Diactoros in a Laminas or Mezzio application, or any application using the laminas-component-installer plugin, you will now be prompted to install its ConfigProvider and/or Module. When you do, it registers the Diactoros factory implementations under the PSR-17 interface names, allowing you to compose instances of the interface in your application classes..

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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport