Registry / web-framework / symfony-http-foundation

symfony-http-foundation

JSON →
library8.1.0phppackagistunverified

Defines an object-oriented layer for the HTTP specification.

composer require symfony/http-foundation
INSTALL
IMPORT
SIG · SYMFONY-HTTP-FOUND
S
symfony-http-foundation
web-frameworkphpv8.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Request
use Symfony\Component\HttpFoundation\Request;

Create a request object from global variables and get the HTTP method.

use Symfony\Component\HttpFoundation\Request; $request = Request::createFromGlobals(); echo $request->getMethod();
Debug
Known issues
breakingSymfony HttpFoundation 8.x requires PHP 8.2+; older versions may not work.
fix
Upgrade PHP to 8.2+ or use an older version.
affects: >=8.0.0
Upgrade
Version history
8.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
1
Resources
symfony-http-foundation — pip install symfony-http-foundation · libregistry