Skip to content

MikkelPaulson/smart-health-card-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages