// Using request parameters in PHP // URL requests: // https://www.example.com?name=John&age=25 // Get the variables from the URL $name = $_GET['name']; // returns "John" $age = $_GET['age']; // returns "25" // or use the request object $request = Request::createFromGlobals(); $name = $request->query->get('name'); $age = $request->query->get('age'); echo "Hello " . $name . ", you are " . $age . " years old.";This code example shows how we can use PHP Request params to obtain the data (name and age) from the URL request. We can then use these variables to generate a user-friendly response. Package Library: Symfony HttpFoundation is a package library in PHP for handling HTTP requests and responses. Symfony\Component\HttpFoundation\Request is the class used to access request parameters, whereas Symfony\Component\HttpFoundation\Response is used to generate HTTP responses.