I want to do basic access authentication using Guzzle and I am very new to programming. I have no clue what to do. I tried to do this using curl but my environment requires
In additional to @amenadiel answer. Sometimes handy specify auth parameters in constructor:
$client = new Client([ 'auth' => ['username', 'password'], ]);
Then every request will use this default auth parameters.