Skip to content

humblephp/humble-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

humble-auth

Latest Version Software License Build Status

HUMBLE Auth

Install

Via Composer

$ composer require humble/auth

Usage

Get PHP Auth with Pdo Adapter.

$adapter = new \Humble\Auth\PdoAdapter($pdo);
$auth = new \Humble\Auth\Auth($adapter, $session);

Authenticate credentials.

$auth->authenticate([
    'username' => 'tester@test.com',
    'password' => 'secret'
]);

Get authenticated user data.

$auth->get();

Remove authenticated user.

$auth->logout();

License

The MIT License (MIT). Please see License File for more information.

Releases

No releases published

Packages

No packages published

Languages