blue2factor / authentication
Blue2Factor for php web servers
dev-master
2022-05-15 00:25 UTC
Requires
- firebase/php-jwt: ^6.1
Requires (Dev)
- phpunit/phpunit: ~9.5
This package is auto-updated.
Last update: 2025-06-13 23:08:59 UTC
README
This php package is for php webservers that use Blue2Factor.
It requires firebase/php-jwt and paragonie/sodium_compat packages.
Sample Usage:
use Blue2Factor\Authentication\blue2factor
$companyId = "COMPANY_ID from https://secure.blue2factor.com";
$loginUrl = "LOGIN_URL that was entered at https://secure.blue2factor.com";
$b2f = new blue2factor();
if ($b2f.authenticateRequest($companyId, $loginUrl, $privateKey) {
//do what you would normally do
}
Use with composer:
composer require blue2factor/authentication
Or on GitHub at https://github.com/bk89686/PhpB2f
For questions, please contact us at (607) 238-3522 or help@blue2factor.com, and visit us at https://www.blue2factor.com.