Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
This package has been abandoned. Use laminas/laminas-diactoros instead.
Generated on May 2, 2024 via composer

zendframework/zend-diactoros 2.2.1

PSR HTTP Message implementations
Package summary
Share
1
issue
1
high severity
meta
1
2
licenses
1
MIT
1
BSD-3-Clause
Package created
21 May 2015
Version published
13 Nov 2019
Maintainers
1
Total deps
2
Direct deps
1
License
BSD-3-Clause

Issues

1

1 high severity issue

high
via: zendframework/zend-diactoros@2.2.1
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
psr/http-factory@1.0.2

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
zendframework/zend-diactoros@2.2.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of zendframework/zend-diactoros 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
psr/http-factory1.0.25.44 kBMIT
prod

Visualizations

Frequently Asked Questions

What does zendframework/zend-diactoros do?

Zendframework/zend-diactoros is an incredibly useful PHP package. The primary function of this package is to offer comprehensive implementations of the PSR-7 HTTP message interfaces, and the PSR-17 HTTP message factory interfaces. These implementations pave the way for developers to send and manipulate HTTP messages in their PHP applications with ease. The ability to effectively handle HTTP requests and responses is essential for any server-side application, making zend-diactoros an important tool in the arsenal of PHP developers.

How do you use zendframework/zend-diactoros?

Utilizing zendframework/zend-diactoros in your PHP projects is straightforward. Unfortunately, the provided readme doesn't contain actual usage examples, but based on standard PSR-7 and PSR-17 practice, here's a simplified illustration of how typical interactions might look:

use Zend\Diactoros\Response;
use Zend\Diactoros\ServerRequestFactory;

$request = ServerRequestFactory::fromGlobals($_SERVER, $_GET, $_POST, $_COOKIE, $_FILES);
$response = new Response();

// Later in your code where you respond to the request
$response = $response->withHeader('Content-type', 'text/html');
$response->getBody()->write("<html><body>Hello, world!</body></html>");

// Send the response
echo $response->getBody();

Remember, in order to use Zend Diactoros, you'll first need to install it via Composer. Run $ composer require zendframework/zend-diactoros in your terminal within the project directory to add the package to your project.

Where are the zendframework/zend-diactoros docs?

The comprehensive documentation for the zendframework/zend-diactoros package is available online. To learn more about how to utilize the powerful features of this package, and get up to speed on best practices, visit https://docs.zendframework.com/zend-diactoros/. All the information you need - from set-up instructions, to detailed usage examples - is contained within these informative guides. For further engagements with the developers and the community, you can also find source files for the documentation in the docs/ tree of the project's GitHub repository.