Question : Guzzle HTTP CLient
Answered by : yohana-galusi
$client = new GuzzleHttp\Client();
$response = $client->get('http://www.server.com/endpoint', [ 'auth' => [ 'username', 'password' ]
]);
Source : https://stackoverflow.com/questions/30970736/how-do-i-do-http-basic-authentication-using-guzzle | Last Update : Wed, 25 May 22