nubium / covid19-vaccination-cert-validator
Digital COVID Certificate Validator
v1.0.0
2022-01-31 09:18 UTC
Requires
- php: >=7.4
- ext-openssl: *
- ext-zlib: *
- composer/semver: ^3.2
- mhauri/base45: ^0.1.1
- spomky-labs/cbor-php: ^2.0
- web-auth/cose-lib: ^3.3
Requires (Dev)
- phpstan/phpstan: ^1.4.2
This package is auto-updated.
Last update: 2024-12-29 07:03:54 UTC
README
(by Nubium Development SE www.nubium.jobs)
Installation
To install latest version of nubium/covid19-vaccination-cert-validator
use Composer.
composer require nubium/covid19-vaccination-cert-validator
Example
https://github.com/nubium/covid19-vaccination-cert-validator/tree/master/example
// read certificate $hash = 'HC1:.....'; // HC1 code $trustStore = new \App\TrustStore(); $certificateFactory = new \Nubium\DCCValidator\CertificateFactory($trustStore); $certificate = $certificateFactory->create($hash); $vaccinationEntry = $certificate->getVaccinationEntry(); // validation process $blackListStore = new \App\BlackListStore(); $certificateValidator = new \App\CertificateValidator($blackListStore); if ($certificateValidator->isValid($certificate) && $vaccinationEntry->isFullyVaccinated()) { // Certificate is valid and proves full vaccination }