laminas/laminas-diactoros
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
psr/http-factory | 1.1.0 | - | MIT | prod |
Laminas/laminas-diactoros is a comprehensive PHP package, specially designed to provide implementations of the PSR-7 HTTP message interfaces and PSR-17 HTTP message factory interfaces. The term Diactoros, named after the Greek word for "the messenger", signifies its primary function as a messenger, delivering HTTP messages in line with the PSR-7 HTTP message and PSR-17 HTTP message factory standards. The package is a successor to the phly/http package and offers more advanced features and functionality for maximum performance.
To use laminas/laminas-diactoros in your PHP projects, it's essential to install it first. It can be installed using composer via the terminal or command line:
composer require laminas/laminas-diactoros
After successfully installing, you can use it in your PHP code like this:
use Laminas\Diactoros\ServerRequestFactory;
$request = ServerRequestFactory::fromGlobals(
$_SERVER,
$_GET,
$_POST,
$_COOKIE,
$_FILES
);
In the above example, we are using the ServerRequestFactory to create a new server request instance from PHP's superglobals.
Thorough and context-rich documentation for laminas/laminas-diactoros is accessible through the official Laminas Project website at the documentation site. Significant details, such as installation, configuration, usage, and FAQs, are comprehensively covered in the documentation. It serves as a guide for developers to use, understand, and maximize the benefits of the laminas/laminas-diactoros package. The source files for the documentation are conveniently located within the docs/ tree of the project repository.