PHPackages                             stwon/covpasscheck-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. stwon/covpasscheck-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

stwon/covpasscheck-php
======================

1.5.3(4y ago)61563[1 issues](https://github.com/stw-on/covpasscheck-php/issues)MITPHPPHP &gt;=8.0

Since Oct 5Pushed 4y ago2 watchersCompare

[ Source](https://github.com/stw-on/covpasscheck-php)[ Packagist](https://packagist.org/packages/stwon/covpasscheck-php)[ RSS](/packages/stwon-covpasscheck-php/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (5)Versions (16)Used By (0)

CovPassCheck PHP
================

[](#covpasscheck-php)

A PHP library to read and validate [EU Digital COVID Certificates](https://github.com/ehn-dcc-development/hcert-spec).

Install
-------

[](#install)

```
composer require stwon/covpasscheck-php
```

Usage
-----

[](#usage)

Currently, the library only ships with a file based trust store. You need to download and store valid certificates manually or implement your own custom `TrustStore` class. The `FileTrustStore` reads JSON files matching the schema described [here](https://github.com/Digitaler-Impfnachweis/certification-apis/blob/master/dsc-update/README.md). Note that you MUST NOT include the signature part (i.e. first line) of DSC TrustList Update API responses.

```
$trustStore = new FileTrustStore('./certs.json');
$check = new CovPassCheck($trustStore);

try {
    // This is the scanned QR code content ↓
    $certificate = $check->readCertificate('HC1:...');

    $subject = $certificate->getSubject();

    if ($certificate->isCovered(Target::COVID19, HealthCertificate::TYPE_VACCINATION | HealthCertificate::TYPE_RECOVERY)) {
        $this->line($subject->getFirstName() . ' does conform to 2G rules.');
    } else {
        $this->line($subject->getFirstName() . ' does not conform to 2G rules.');
    }
} catch (InvalidSignatureException $exception) {
    // oh noo
}
```

License
-------

[](#license)

See [LICENSE.md](./LICENSE.md).

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~3 days

Total

15

Last Release

1687d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4185d40a62682ae78e5070d9d00145fb5884fcd99bdd5a7e7adb9cd3758cdaa4?d=identicon)[timoschwarzer](/maintainers/timoschwarzer)

---

Top Contributors

[![timoschwarzer](https://avatars.githubusercontent.com/u/8849554?v=4)](https://github.com/timoschwarzer "timoschwarzer (32 commits)")

### Embed Badge

![Health badge](/badges/stwon-covpasscheck-php/health.svg)

```
[![Health](https://phpackages.com/badges/stwon-covpasscheck-php/health.svg)](https://phpackages.com/packages/stwon-covpasscheck-php)
```

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M25.2k](/packages/friendsofphp-php-cs-fixer)[statamic/cms

The Statamic CMS Core Package

4.8k3.6M987](/packages/statamic-cms)[illuminate/support

The Illuminate Support package.

630113.0M41.3k](/packages/illuminate-support)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[web-auth/webauthn-lib

FIDO2/Webauthn Support For PHP

12310.5M135](/packages/web-auth-webauthn-lib)[symfony/asset-mapper

Maps directories of assets &amp; makes them available in a public directory with versioned filenames.

1678.8M238](/packages/symfony-asset-mapper)

PHPackages © 2026

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