The documentation you are viewing is for an older version of this component.
Switch to the latest (v2) version.
Install this library using composer:
$ composer require "laminas/laminas-diactoros:^1.8.6"
laminas-diactoros has the following dependencies (which are managed by Composer):
psr/http-message, which defines interfaces for HTTP messages, including requests and responses.
laminas-diactorosprovides implementations of each of these.