$client = new GuzzleHttpClient(); $response = $client->get('http://www.server.com/endpoint', [ 'auth' => [ 'username', 'password' ] ]);