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 17, 2024 via composer

symfony/http-kernel v7.0.6

Provides a structured process for converting a Request into a Response
Package summary
Share
0
issues
1
license
12
MIT
Package created
16 Oct 2011
Version published
3 Apr 2024
Maintainers
1
Total deps
12
Direct deps
5
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
12 Packages, Including:
psr/event-dispatcher@1.0.0
psr/log@3.0.0
symfony/error-handler@v7.0.7
symfony/event-dispatcher@v7.0.7
symfony/event-dispatcher-contracts@v3.5.0
symfony/http-foundation@v7.0.7
symfony/http-kernel@v7.0.6
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php80@v1.29.0
symfony/polyfill-php83@v1.29.0
symfony/var-dumper@v7.0.7
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

5
All Dependencies CSV
β“˜ This is a list of symfony/http-kernel 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
psr/log3.0.06.77 kBMIT
prod dev
symfony/error-handlerv7.0.7-MIT
prod dev
symfony/event-dispatcherv7.0.7-MIT
prod
symfony/http-foundationv7.0.7-MIT
prod dev
symfony/polyfill-ctypev1.29.0-MIT
prod

Visualizations

Frequently Asked Questions

What does symfony/http-kernel do?

The symfony/http-kernel package offers a well-organized process for transmuting a Request into a Response. Leveraging the EventDispatcher component, this package has the flexibility to create full-stack frameworks, micro-frameworks or even advanced CMS systems like Drupal. It plays a critical role in managing HTTP requests and handling responses in an application.

How do you use symfony/http-kernel?

To use the symfony/http-kernel in your PHP projects, you will first have to install the package using Composer. You can do so with the following command:

composer require symfony/http-kernel

Then, you can make use of it in your PHP code. Here's an elementary example of how you can utilize the HttpKernel:

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\HttpKernel;
use Symfony\Component\HttpKernel\Controller\ControllerResolver;
use Symfony\Component\EventDispatcher\EventDispatcher;

$dispatcher = new EventDispatcher();
$resolver = new ControllerResolver();

$kernel = new HttpKernel($dispatcher, $resolver);

$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();

$kernel->terminate($request, $response);

In this example, we create a new instance of the HttpKernel with an EventDispatcher and a ControllerResolver. Then, we create a Request object from the global PHP variables. This Request object is then passed to the handle method of our kernel, which will return a Response. Lastly, this response is sent to the client, and the request-response cycle is terminated.

Where are the symfony/http-kernel docs?

The official and in-depth documentation for symfony/http-kernel can be found at Symfony's official website. This resource provides a comprehensive guide on how to use the symfony/http-kernel package plus all of its functionalities and features. For contribution guidelines or to access the main Symfony repository or report issues, the links are provided in the original readme file of the symfony/http-kernel package on Github.