ez-php / webauthn
WebAuthn / FIDO2 passkey authentication: registration and assertion ceremonies, attestation verification, challenge handling
2.4.2
2026-09-16 14:31 UTC
Requires
- php: ^8.5
- ext-openssl: *
- ext-sodium: *
Requires (Dev)
- ez-php/docker: ^2.0
- friendsofphp/php-cs-fixer: ^3.94
- phpstan/phpstan: ^2.1
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-strict-rules: ^2.0
- phpunit/phpunit: ^13.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
WebAuthn / FIDO2 passkey authentication: registration and assertion ceremonies, attestation verification, challenge handling.
Installation
composer require ez-php/webauthn
Usage
See docs/superpowers/specs/2026-09-14-webauthn-module-design.md for the
full design. Quick start:
$relyingParty = new RelyingParty(id: 'example.com', name: 'Example', allowedOrigins: ['https://example.com']); $ceremony = new RegistrationCeremony($relyingParty); $credentialSource = $ceremony->verify($challenge, $clientResponse); $credentialRepository->save($credentialSource);
License
MIT