Parse SGQR code (Singapore Quick Response Code) as per http://www.mas.gov.sg/sgqr. No validation is performed at this point.
Gave a talk on this at the December 2018 meetup for the Singapore PHP User Group - video recording here.
- PHP >= 7.0
- Composer >= 1.6.4
- Clone this repo.
- Run
composer installto install dependencies.
- Run
composer testto run tests. - Run
composer csto run coding style checks. - Run
composer checkto do both.
-
As this library is not available on Packagist, the GitHub repository needs to be added to the project's
composer.json.{ "repositories": [ { "type": "git", "url": "https://github.com/zionsg/sgqr-parser" } ] } -
Run
composer require zionsg/sgqr-parser:dev-masterto get the latest release in themasterbranch.
- See PHPUnit tests in
testfolder.