PHPackages                             grambas/dcc-verifier - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. grambas/dcc-verifier

ActiveLibrary[Security](/categories/security)

grambas/dcc-verifier
====================

Decode and verify digital COVID-19 certificate against germany signer trust list public key

281PHP

Since Dec 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/grambas/dcc-verifier)[ Packagist](https://packagist.org/packages/grambas/dcc-verifier)[ RSS](/packages/grambas-dcc-verifier/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

dcc-verifier
============

[](#dcc-verifier)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9966ced26953dbc19d37ea3c2deaa9e35e6de73e7dc2e2af2645c4d96af6c429/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6772616d6261732f6463632d76657269666965722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/grambas/dcc-verifier)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![coverage](https://camo.githubusercontent.com/8c2925a3b04a83ecc80ea73e3eed61f81d276424b41abc525daecd95246a0c40/68747470733a2f2f636f6465636f762e696f2f67682f6772616d6261732f6463632d76657269666965722f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d35585a5a50414e4f3033)](https://codecov.io/gh/grambas/dcc-verifier)[![Total Downloads](https://camo.githubusercontent.com/76e2d7ef4d4c4b2bdd073aa64a640e18c07624e055548ebcd977b883f9ad7e42/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6772616d6261732f6463632d76657269666965722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/grambas/dcc-verifier)

Alpha version of digital COVID-19 verification implementation with php.

Install
-------

[](#install)

Via Composer

```
$ composer require grambas/dcc-verifier
```

Demo
----

[](#demo)

This SDK is used in Demo API Project- [dcc-verifier.de](https://dcc-verifier.de/) which is also open sourced at [grambas/dcc-verifier-api](https://github.com/grambas/dcc-verifier-api)

Info
----

[](#info)

This package implements Germany public trust list api [repository](https://github.com/Digitaler-Impfnachweis/certification-apis/blob/master/dsc-update/README.md). More about api - [Open API specification](https://github.com/Digitaler-Impfnachweis/certification-apis/blob/master/dsc-update/dsc-update-api.yaml)

Features
--------

[](#features)

- Decode and read EU Digital COVID-19 Certificate data (DCC) of vaccination, recovery or test (PCR, Rapid) subject
- Validate DCC date of expiry
- Validate DCC against authoritative signer signature
- Use Germany trust list
- Ability to use own trust list repository

Usage
-----

[](#usage)

```
    $trustListDir = '/tmp/de-trust-list'; // local dir for saving trust list json file

    // 1. Download / Update Germany signer trust list
    $client = new GermanyTrustListClient($trustListDir);
    $client->update();

    // 2. Init existing trust list repository.
    $trustListRepository = new GermanyTrustListRepository($trustListDir);

    // 3. Init verfier with qr code content
    $qrCodeContent = 'HC1:...'
    $verifier = new DccVerifier($qrCodeContent, $trustListRepository);

    // 4. Decode & verify
    $dcc = $verifier->decode(); // get certificate info
    $verifier->verify(); // validate against signer signature

    // 5. Validate if Certificate (Vaccination, Recovery or Test) conforms  specific business rules for example if
    // fully vaccinated or test is negetive
    $isValid = $dcc->isValid()

    // 6. Check certificate validation date
    $validator = new DateValidator($dcc);
    $isValidForDate = $validator->isValidForDate(new \DateTime());
```

Of course validation steps 4. 5. and 6 can be checked independently and in your preferred order

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ make test
$ make coverage
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Mindaugas Milius](https://github.com/grambas)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT), see [License File](LICENSE.md) and [NOTICE](NOTICE.md) for more information.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/833557c345cbd69859526118a501e0105fcf9e39756984b225c68c03da0b0311?d=identicon)[grambas](/maintainers/grambas)

---

Top Contributors

[![grambas](https://avatars.githubusercontent.com/u/5207343?v=4)](https://github.com/grambas "grambas (11 commits)")

### Embed Badge

![Health badge](/badges/grambas-dcc-verifier/health.svg)

```
[![Health](https://phpackages.com/badges/grambas-dcc-verifier/health.svg)](https://phpackages.com/packages/grambas-dcc-verifier)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
