web-auth/cose-lib
PHP 8.1+ COSE (RFC 9052/9053) library supporting Sign1/Sign, Encrypt0/Encrypt, Mac0/Mac with full tag support. Implements ECDSA, EdDSA, RSA and HMAC algorithms for signing, encryption and MAC; compatible with WebAuthn/FIDO2.
Adopt if:
Look elsewhere if:
spomky-labs/cbor-php dependency).For Executives: "This library enables us to adopt COSE, a modern cryptographic standard for compact, secure signatures/encryption—critical for EU Digital COVID Certificates, WebAuthn logins, and IoT security. By using this PHP package, we avoid building COSE support from scratch, reducing development risk while future-proofing our authentication infrastructure. The MIT license and RFC compliance ensure long-term viability."
For Engineering:
"The web-auth/cose-lib provides a battle-tested PHP implementation of COSE (RFC 9052/9053) with support for ECDSA, EdDSA, RSA, and HMAC algorithms. It integrates with spomky-labs/cbor-php for binary efficiency and offers type-safe APIs for signing/verifying COSE_Sign1, COSE_Encrypt0, and MAC operations. Ideal for replacing JWS/JWE in constrained environments or adding WebAuthn/FIDO2 support. Requires PHP 8.1+ and OpenSSL."
How can I help you explore Laravel packages today?