$request = Request::createFromGlobals(); $response = new Response('Hello World!'); $response->send();
$users = DB::table('users')->where('votes', '>', 100)->get();
$loader = new Twig_Loader_Filesystem('/path/to/templates'); $twig = new Twig_Environment($loader, [ 'cache' => '/path/to/compilation_cache', ]); echo $twig->render('index.html', ['name' => 'John']);
$client = new \GuzzleHttp\Client(); $response = $client->request('GET', 'https://api.github.com/user', [ 'auth' => ['user', 'pass'] ]); echo $response->getStatusCode();