Skip to content

zionsg/sgqr-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

df928a9 · Mar 10, 2021

History

30 Commits
Oct 30, 2018
Mar 10, 2021
Dec 22, 2020
Oct 20, 2018
Mar 10, 2021
Oct 20, 2018
Dec 19, 2020
Oct 30, 2018
Oct 30, 2018
Oct 30, 2018
Oct 30, 2018

Repository files navigation

SGQR Parser

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.

Requirements

  • PHP >= 7.0
  • Composer >= 1.6.4

Installation

  • Clone this repo.
  • Run composer install to install dependencies.

Tests

  • Run composer test to run tests.
  • Run composer cs to run coding style checks.
  • Run composer check to do both.

Add to project

  • 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 the master branch.

Usage

  • See PHPUnit tests in test folder.