Releases: SK-EID/smart-id-php-client
Releases · SK-EID/smart-id-php-client
2.3.1
2.3
Changed
- If user picks wrong verification code then UserSelectedWrongVerificationCodeException is thrown (previously TechnicalErrorException was thrown)
- Minimal PHP version lifted to 7.4
Added
- Added intermediate exceptions (UserAccountException if there is problem with user Smart-ID account, UserActionException if the exception is caused by user's actions, EnduringSmartIdException if something is wrong with Smart-ID service or the integration configuration is invalid) so there is no need to handle each case independently.
- New method SmartIdAuthenticationResponse::getDocumentNumber()
- Usage examples added to README.md
2.2.2
2.2.1
2.2
2.1
Changed
- PHP version upgraded 7.2 -> 7.3
- PhpUnit upgraded to 5.7 -> 9
Added
- New function AuthenticationIdentity->getDateOfBirth() that reads birthdate info from a separate field in certificate or detects it from national identity number.
NB This function can return null for some Latvian certificates. - New function AuthenticationIdentity->getIdentityNumber() that returns personal identification number without a PNOEE-, IDXLV- etc prefix
- Return types added to methods
- Library and PHP version number added to User-Agent header of outgoing requests
v2.0
[2.0] - 2021-04-07
Added
- Support for Smart id api version 2.0
- Authentication routes using semantics identifiers
- Different Interaction types based on enduser device capabilities
Removed
- Building request with national identity (Use semantics identifiiers (chapter 5.1.3))
- Hard coded ssl public keys for demo and live smart id environments (Since this release, relying parties need to specify the public keys used when setting up the client)
Changed
- php version >= 7.2