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
Generated on May 9, 2024 via composer

symfony/psr-http-message-bridge v6.4.6

PSR HTTP message bridge
Package summary
Share
0
issues
1
license
5
MIT
Package created
29 May 2015
Version published
27 Mar 2024
Maintainers
1
Total deps
5
Direct deps
1
License
MIT

Issues

0
This package has no issues

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
5 Packages, Including:
symfony/http-foundation@v7.0.7
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php80@v1.29.0
symfony/polyfill-php83@v1.29.0
symfony/psr-http-message-bridge@v6.4.6
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 symfony/psr-http-message-bridge 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
symfony/http-foundationv7.0.7-MIT
prod

Visualizations

Frequently Asked Questions

What does symfony/psr-http-message-bridge do?

The Symfony PSR HTTP Message Bridge, or symfony/psr-http-message-bridge, acts as an intermediary aiding in the integration of PSR-7. It provides efficient compatibility between Symfony HTTP Messages and PSR-7 standard. This is particularly valuable when switching between or operating concurrently with Symfony and other PSR-7 compliant systems.

How do you use symfony/psr-http-message-bridge?

To use symfony/psr-http-message-bridge, you need to perform an installation via composer package manager. It's as simple as navigating to your project directory and running composer require symfony/psr-http-message-bridge in your terminal. After which, you can then use the library in your PHP code. Here's a simple usage example:

<?php

use Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory;
use Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory;

// To convert Symfony Request to PSR-7
$psr7Factory = new DiactorosFactory();
$psr7Request = $psr7Factory->createRequest($symfonyRequest);

// To convert PSR-7 response to Symfony
$httpFoundationFactory = new HttpFoundationFactory();
$symfonyResponse = $httpFoundationFactory->createResponse($psr7Response);

In the example above, we first create a PSR-7 request from a Symfony request. We later convert a PSR-7 response to a Symfony response.

Where are the symfony/psr-http-message-bridge docs?

For comprehensive information regarding how to use the Symfony PSR HTTP Message Bridge, you will find the official documentation on the Symfony website, specifically at this URL: https://symfony.com/doc/current/components/psr7.html. This resource offers complete and detailed instructions, serving as a useful guide for leveraging this robust Symfony package.