Install this library using composer:

$ composer require "zendframework/zend-diactoros:^1.8.6"

zend-diactoros has the following dependencies (which are managed by Composer):

  • psr/http-message, which defines interfaces for HTTP messages, including requests and responses. zend-diactoros provides implementations of each of these.

Found a mistake or want to contribute to the documentation? Edit this page on GitHub!