vakata / authentication
PHP authentication library
3.6.4
2025-03-24 21:54 UTC
Requires
- vakata/certificate: ^5.8
- vakata/database: ^4.0|^5.0
- vakata/jwt: ^4.0
- vakata/random: >=1.1.1
Requires (Dev)
- phpunit/phpunit: 4.*
This package is auto-updated.
Last update: 2026-06-25 00:31:36 UTC
README
PHP authentication.
Install
Via Composer
$ composer require vakata/authentication
Usage
$auth = new \vakata\authentication\PasswordDatabase($db); try { $token = $auth->authenticate([ 'username' => $req->getPost('username'), 'password' => $req->getPost('password') ]); } catch (AuthenticationException $e) { // process exception } // work with $token
Read more in the API docs
Testing
$ composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email github@vakata.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.