Repository navigation
4.0.0
What's Changed
This is a major release with breaking changes. Please read the Migration Guide from v3.x to v4.0 before upgrading.
Breaking Changes
- PHP 8.2+ required
- PSR-20 Clock is now mandatory:
ExpirationTimeChecker,IssuedAtChecker, andNotBeforeCheckernow require aClockInterfaceas the first constructor argument (previously optional and last). The internalInternalClockclass has been removed. - Simplified JWE constructors:
JWEBuilderandJWEDecrypternow accept a singleAlgorithmManagerinstead of separate key encryption, content encryption, and compression managers. The same applies toJWEBuilderFactoryandJWEDecrypterFactory. - Compression support removed: All compression classes (
CompressionMethodManager,Deflate, etc.) have been removed following RFC 8725 Section 3.6. - Dependency changes:
fgrosse/phpasn1replaced byspomky-labs/pki-framework,paragonie/constant_time_encodingremoved,psr/http-clientandpsr/http-factoryreplaced bysymfony/http-client-contracts. - Package consolidation: Individual packages (
web-token/jwt-core,web-token/jwt-signature, etc.) are deprecated. Useweb-token/jwt-libraryorweb-token/jwt-experimentalinstead.
New Features
- ECDH-SS (Static-Static) key agreement algorithms:
ECDH-SS,ECDH-SS+A128KW,ECDH-SS+A192KW,ECDH-SS+A256KW - New generic checkers:
CallableCheckerandIsEqualChecker - Code modernization:
readonlyclasses, constructor promotion,#[Override]attributes
Pull Requests
- 572: Update dependencies and CI/CD thanks to @Spomky
- 564: Restore repositories to .gitsplit.yml thanks to @Spomky
- 557: Add new testing options and refactor code for clarity. thanks to @Spomky
- 535: Deps/ecs rector dependencies thanks to @Spomky
- 529: Preparing 4.0.0 thanks to @Spomky
- 414: fgrosse/phpasn1 removed in favor of the S-L PKI framework thanks to @Spomky