humble / auth
HUMBLE Auth
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/humble/auth
Requires
- php: >=7.0.0
- humble/standards: ~1.0
Requires (Dev)
- phpunit/phpunit: ~5.2
This package is not auto-updated.
Last update: 2025-10-12 01:02:49 UTC
README
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.