Basic Authentication Library written in PHP