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
- Ensure that your system is running PHP 7.4+.
- Install Composer.
- Run
composer install
in the project root directory.
Usage
- Use a QRcode app to scan the QRcode you want to parse.
- 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)