Currently a stub library with only HTTP Digest support. Will support Basic Auth also in the future.
$digest = new Php_Http_Auth\Digest(['username' => 'password']);
if (!$digest->login()) {
header('HTTP/1.1 401 Unauthorized');
echo 'Failed to login.';
exit;
}
Copyright 2012, Markus Hedlund, Snowfire.
Licensed under the MIT License.
Redistributions of files must retain the above copyright notice.