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 install
to install dependencies.
- Run
composer test
to run tests. - Run
composer cs
to run coding style checks. - Run
composer check
to 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-master
to get the latest release in themaster
branch.
- See PHPUnit tests in
test
folder.