Download the PHP package phroute/authentic without Composer
On this page you can find all versions of the php package phroute/authentic. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package authentic
Authentic
Authentic is a simple, framwork agnostic authentication library, designed to be flexible and easy to integrate with any PHP project.
use Phroute\Authentic\Authenticator;
/**
* Your application user repository
* Implements:
* public function findById($id);
* public function findByLogin($login);
* public function registerUser(array $userDetails);
*/
$userRepository = new UserRepository();
$auth = new Authenticator($userRepository);
use Phroute\Authentic\Exception\AuthenticationException;
$credentials = array(
'email' => '[email protected]',
'password' => 'pa55w0rd'
);
$rememberMe = true;
try
{
$auth->authenticate($credentials, $rememberMe);
}catch(AuthenticationException $e)
{
return false; // Nope...
}
// Aaaaand we're in...
return true;
All versions of authentic with dependencies
PHP Build Version
Package Version
Requires
ircmaxell/password-compat Version
~1.0
The package phroute/authentic contains the following files
Loading the files please wait ....