Releases: linna/csrf-guard
Releases · linna/csrf-guard
v2.0.0
New on this version
Added
Linna\CsrfGuard\Exception
namespaceLinna\CsrfGuard\Exception\BadExpireException
exceptionLinna\CsrfGuard\Exception\BadStorageSizeException
exceptionLinna\CsrfGuard\Exception\BadTokenLenghtException
exceptionLinna\CsrfGuard\Exception\BadExpireTrait
traitLinna\CsrfGuard\Exception\BadStorageSizeTrait
traitLinna\CsrfGuard\Exception\BadTokenLenghtTrait
traitLinna\CsrfGuard\Exception\ExceptionBoundary
classLinna\CsrfGuard\Exception\SessionNotStartedException
exceptionLinna\CsrfGuard\Exception\SessionNotStartedTrait
traitLinna\CsrfGuard\ProviderSimpleFactory
classLinna\CsrfGuard\Provider
namespaceLinna\CsrfGuard\Provider\EncryptionTokenProvider
classLinna\CsrfGuard\Provider\HmacTokenProvider
classLinna\CsrfGuard\Provider\SynchronizerTokenProvider
classLinna\CsrfGuard\Provider\TokenProviderInterface
interface
Changed
- namespace of the packet is now
Linna\CsrfGuard
Removed
Linna\CsrfGuard
class
v1.4.0
New on this version
Added
- PHP 8.0 support
Changed
getTimedToken()
now$ttl
parameter has a default value of 600 (seconds)cleanStorage()
now$preserve
parameter has a default value of 0 (clean all)- Minor code optimization
- Minimun PHP version: 7.4
Call getTimedToken()
without parameters, return a timed token that expires in 10 minutes.
Call cleanStorage()
without parameters, delete all tokens in session storage, it doesn't preserve any token.
Changelog File
For more information read the full Changelog until now.
More info about 1.x version
This is the last release for the 1.x branch, I am still working on the 2.x version of the "guard" to offer more types of tokens and to be more compliant with the CSRF Owasp Cheat Sheet