vakata / authentication
PHP authentication library
Installs: 3 654
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
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.*
- dev-master
- 3.6.0
- 3.5.5
- 3.5.4
- 3.5.3
- 3.5.2
- 3.5.1
- 3.5.0
- 3.4.6
- 3.4.5
- 3.4.4
- 3.4.3
- 3.4.2
- 3.4.1
- 3.4.0
- 3.3.0
- 3.2.1
- 3.2.0
- 3.1.0
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.6.1
- 2.6.0
- 2.5.4
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.0
- 2.3.7
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.0
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.1.0
- 1.0.2
- 1.0.1
- 1.0.0
This package is auto-updated.
Last update: 2024-12-04 12:37:49 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.