Repository navigation
Releases
1.2.0
This release restores the 64-bit PHP 8.4+ implementation after the PHP 8.1 backport in 1.0.0 (#56). It requires ext-openssl linked against OpenSSL 3.0 or later.
Ed25519 and Ed448 signatures are verified through OpenSSL. Ed448 support is restored, and ext-sodium is no longer required.
If you need PHP 8.1–8.3 or OpenSSL 1.1.1, use 1.0.0.
Full changelog: 1.0.0...1.2.0
1.0.0
This release adds support for 64-bit PHP 8.1 and later. It requires ext-openssl linked against OpenSSL 1.1.1 or later and ext-sodium for Ed25519 signature verification.
- Public sign-in with discoverable passkeys is the recommended flow for both the passkey button and autofill (#54).
- COSE keys are validated and loaded when imported. Registration rejects off-curve EC keys and small-order Ed25519 keys, including with
noneattestation (#50, #53). - Supported signature algorithms: ES256, ES384, ES512, RS256, and EdDSA (Ed25519). Ed448 is not supported in 1.0.0 (#51).
If you store COSE public keys, persist them with toBytes() and restore them with CoseKey::fromBytes(). PHP's serialize() cannot serialize the cached OpenSSL key handle.
Full changelog: 0.1.0...1.0.0
0.1.0
Initial release.
Passkeys (WebAuthn) library for PHP 8.4+ with zero dependencies (only ext-openssl).
- High-level
PasskeyFlowAPI covering registration and authentication ceremonies, including conditional mediation (autofill), user-handle pinning, enumeration hardening, and clone detection via signature counters - Low-level
RelyingPartyAPI for full control over verification expectations - Supported algorithms: ES256, ES384, ES512, RS256, EdDSA (Ed25519), Ed448
FakeAuthenticatorfor integration-testing ceremonies end-to-end without a browser- Reference integrations: plain PHP and Symfony + Doctrine example apps
- Attestation statements are not verified (
nonepolicy) — see the README for details
100 % test coverage, PHPStan level max with strict rules.