Open-source security libraries for PHP¶
The documentation of each library: what it does, the specifications it implements, how to install it and where to ask about it.
The frameworks¶
What an application installs for what it does: who the user is, what they may do, and the tokens and certificates that carry the answer.
Authentication
WebAuthn Framework
WebAuthn and passkeys for PHP and Symfony.
Tokens
JWT Framework
JSON Web Tokens for PHP and Symfony: signature (JWS), encryption (JWE) and keys (JWK).
One-time passwords
OTPHP
TOTP and HOTP one-time passwords, after RFC 6238 and RFC 4226.
Authorization
Access Control Framework
Authorization for PHP and Symfony: decides whether a requester is allowed to perform an action on a subject.
Certificates
PKI Framework
X.509 certificates, ASN.1 and public key infrastructure.
For Symfony applications¶
Bundles that hand an application a capability of the web platform, configured rather than written.
Progressive web apps
PWA Bundle
Progressive web apps for Symfony: manifest, service worker and offline support.
Notifications
Web Push Framework
Web push notifications for PHP and Symfony.
The building blocks¶
The encoding and the cryptography the frameworks above stand on. Composer installs them for you; their documentation is here for the day you read a stack trace or write a layer of your own.