HTTP Basic Authentication

How can I get the username and password from the Authorization: Basic header that was sent with the request?

I'm using the \Phalcon\Mvc\Micro() framework.

Try this

$userName = $this->request->getServer('PHP_AUTH_USER');
$password = $this->request->getServer('PHP_AUTH_PW');