Easily create and read Corona Warn App Check-In URLs

Related tags

php corona check-in covid
Overview

bauer-kirch/cwa-event-registration-url

This PHP library allows generating Check-In URLs for the Corona Warn App which can then be used to generate a QR code from. Moreover, event details can be extracted from existing Check-In URLs.

This library does not generate a QR code image. A dedicated library for QR code generation can be used for that, either in PHP or client side using JavaScript. A QR code generated from the check-in URL will open the Corona Warn App on mobile devices.

Installation

composer require bauer-kirch/cwa-event-registration-url

Usage

Reading URLs

use BauerKirch\CoronaWarnAppEventRegistration\QRCodePayloadReader;

$url = 'https://e.coronawarn.app/?v=1#CAESR...';
$reader = new QRCodePayloadReader();
$result = $reader->readUrl($url);
echo $result->getDescription();

Generating URLs

use BauerKirch\CoronaWarnAppEventRegistration\LocationType;
use BauerKirch\CoronaWarnAppEventRegistration\QRCodePayloadGenerator;

$generator = new QRCodePayloadGenerator();
$url = $generator->generateQRCodeUrl(
    LocationType::permanentWorkplace(),
    'Bauer + Kirch GmbH',
    'Pascalstr. 57, 52076 Aachen',
    120 // default check-in time in minutes
);
echo $url;
Releases(v1.0.1)
Owner
Bauer + Kirch GmbH
Clevere Software- und Internet-Lösungen für anspruchsvolle Prozesse
Bauer + Kirch GmbH
Extracts information about web pages, like youtube videos, twitter statuses or blog articles.

Essence is a simple PHP library to extract media information from websites, like youtube videos, twitter statuses or blog articles. If you were alread

Essence 741 May 17, 2021
yii2 MinIO

yii2-minio Yii2 MinIO Installation php composer.phar require bevin1984/yii2-minio:^0.0.1 Or "bevin1984/yii2-minio": "^0.0.1" Configuration 'components

Bevin 4 May 26, 2021
Get mobile app version and other related data from Google Play Store, Apple App Store and Huawei AppGallery

Mobile App Version Get mobile app version and other related data from Google Play Store, Apple App Store and Huawei AppGallery. Installation Add to co

Omer Salaj 10 May 30, 2021
Michael Pratt 279 Jun 15, 2021
RMT is a handy tool to help releasing new version of your software

RMT - Release Management Tool RMT is a handy tool to help releasing new versions of your software. You can define the type of version generator you wa

Liip 430 Jun 13, 2021
Fact Extraction and VERification Over Unstructured and Structured information

Repository for Fact Extraction and VERification Over Unstructured and Structured information (FEVEROUS), used for the FEVER Workshop Shared Task at EMNLP2021.

Rami 12 Jun 14, 2021
Lock library to provide serialized execution of PHP code.

Requirements | Installation | Usage | License and authors | Donations php-lock/lock This library helps executing critical code in concurrent situation

null 787 Jun 7, 2021
Uma solucão simples para integrar sua aplicação Laravel a API PIX do Banco Central do Brasil

Uma solução simples para integrar a sua aplicação Laravel com a API PIX do Banco Central do Brasil Instalação Publicando os assets Publicando o arquiv

Mateus Junges 22 Jun 15, 2021
Small convention based CQRS library for PHP

LiteCQRS for PHP Small naming-convention based CQRS library for PHP (loosely based on LiteCQRS for C#) that relies on the MessageBus, Command, EventSo

Benjamin Eberlei 558 May 23, 2021
⚡️Lightning-fast linter for .env files. Written in Rust 🦀

⚡️ Lightning-fast linter for .env files. Written in Rust ?? Dotenv-linter can check / fix / compare .env files for problems that may cause the applica

null 946 Jun 13, 2021
FreshRSS is a self-hosted RSS feed aggregator like Leed or Kriss Feed.

Read this document on github.com/FreshRSS/FreshRSS/ to get the correct links and pictures. Version française FreshRSS FreshRSS is a self-hosted RSS fe

FreshRSS 3.3k Jun 21, 2021
PHP OOP interface for writing Slack Block Kit messages and modals

Slack Block Kit for PHP ?? For formatting messages and modals for Slack using their Block Kit syntax via an OOP interface ?? By Jeremy Lindblom (@jere

Slack PHP Framework 10 Jun 18, 2021
[READ-ONLY] CakePHP Utility classes such as Inflector, Text, Hash, Security and Xml. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp

CakePHP Utility Classes This library provides a range of utility classes that are used throughout the CakePHP framework What's in the toolbox? Hash A

CakePHP 108 Jun 2, 2021
Command bus package for PHP

#Chief Chief is a powerful standalone command bus package for PHP 5.4+. Contents What is a command bus Installation Usage Class-based command handlers

Adam Nicholson 49 Apr 29, 2021