Skip to content

Commit

Permalink
Merge pull request #1 from zionsg/two-level-nesting
Browse files Browse the repository at this point in the history
Release for v0.3.0
  • Loading branch information
zionsg authored Oct 30, 2018
2 parents 734ade2 + 827ec89 commit 9b68240
Show file tree
Hide file tree
Showing 11 changed files with 1,769 additions and 98 deletions.
19 changes: 18 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ All notable changes to this project will be documented in this file, in reverse
The format follows [Keep a CHANGELOG](http://keepachangelog.com/).
This project adheres to [Semantic Versioning](http://semver.org/).

## [v0.3.0] - 2018-10-31

### Added
- Handling of nested templates, in particular data objects ID 50 - 99 under the template for root data object ID 62.
- Mark nested templates with `isTemplate` key in specifications.
- Coding style checks using PHP CodeSniffer.

### Changed
- Use PHPUnit for tests.

### Removed
- Nothing.

### Fixed
- Nothing.

## [v0.2.0] - 2018-10-22

### Added
Expand Down Expand Up @@ -44,6 +60,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).

1st release. Used at https://intzone.com/tools/sgqr.

[Unreleased]: https://github.com/zionsg/sgqr-parser/compare/v0.2.0...HEAD
[Unreleased]: https://github.com/zionsg/sgqr-parser/compare/v0.3.0...HEAD
[v0.3.0]: https://github.com/zionsg/sgqr-parser/compare/v0.2.0...v0.3.0
[v0.2.0]: https://github.com/zionsg/sgqr-parser/compare/v0.1.0...v0.2.0
[v0.1.0]: https://github.com/zionsg/sgqr-parser/tree/v0.1.0
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ Parse SGQR code (Singapore Quick Response Code) as per http://www.mas.gov.sg/sgq
No validation is performed at this point of time.

## Requirements
- PHP >= 7.1
- Composer >= 1.7.2
- PHP >= 7.0
- Composer >= 1.6.4

## Installation
- Clone this repo.
- Run `composer install`.
- Run `composer test` in the terminal or `tests/test.php` in the browser.
- 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
Expand All @@ -29,4 +33,4 @@ No validation is performed at this point of time.
- Run `composer require zionsg/sgqr-parser:dev-master` to get the latest release in the `master` branch.

## Usage
- See `tests/test.php`.
- See PHPUnit tests in `test` folder.
22 changes: 19 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,29 @@
"type": "library",
"homepage": "https://github.com/zionsg/sgqr-parser",

"require-dev": {
"phpunit/phpunit": "^6.5",
"squizlabs/php_codesniffer": "^3.3"
},

"autoload": {
"psr-4": {
"SgQr\\": "src/SgQr/"
}
},

"scripts": {
"test": "php tests/test.php"
}
"autoload-dev": {
"psr-4": {
"SgQrTest\\": "test/SgQr/"
}
},

"scripts": {
"check": [
"@cs",
"@test"
],
"cs": "phpcs",
"test": "phpunit"
}
}
Loading

0 comments on commit 9b68240

Please sign in to comment.