acranbury / smart-health-card-parser

A proof-of-concept parser for the SMART Health Cards format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SMART Health Cards parser

A proof-of-concept parser for the SMART Health Cards format. This is not intended for production use. I just hacked this together for a blog post, and thought it might be handy.

If you intend to adapt this code for production use, be aware that it does no validation of the provided signature whatsoever. It is only intended to display the data contained in the QRcode.

Setup

  1. Ensure that your system is running PHP 7.4+.
  2. Install Composer.
  3. Run composer install in the project root directory.

Usage

  1. Use a QRcode app to scan the QRcode you want to parse.
  2. Pipe the resultant string through the php parse.php command, for instance using one of the following commands:
  • php parse.php < qrcode.txt # input from qrcode.txt in the same directory
  • pbpaste | php parse.php # paste from clipboard (Mac only)

About

A proof-of-concept parser for the SMART Health Cards format.

License:MIT License


Languages

Language:PHP 100.0%