11 "user1" =>
"password",
12 "user2" =>
"password",
21 __DIR__ .
'/../vendor/autoload.php',
22 __DIR__ .
'/../../../autoload.php',
23 __DIR__ .
'/vendor/autoload.php',
28 if (file_exists($path)) {
38 if (!$userPass =
$basicAuth->getCredentials()) {
43 } elseif (!isset(
$userList[$userPass[0]]) ||
$userList[$userPass[0]] !== $userPass[1]) {
foreach($paths as $path) $request
This class represents a single HTTP response.
$userList
This example shows how to do Basic authentication.