0PricingLogin
PHP Academy · Lesson

HttpFoundation: Request and Response

Wrap superglobals in HttpFoundation Request and build Response objects.

What is HttpFoundation?

Symfony HttpFoundation is a standalone PHP component that wraps the raw HTTP superglobals ($_GET, $_POST, $_SERVER) in clean, OO classes.

Installing HttpFoundation

Install as a standalone package via Composer.

$ composer require symfony/http-foundation

All lessons in this course

  1. HttpFoundation: Request and Response
  2. DependencyInjection Container
  3. EventDispatcher: Decoupled Events
  4. Console Component: CLI Commands
← Back to PHP Academy