Commit Graph

168 Commits

Author SHA1 Message Date
smiley ca56fe5ca9 :octocat: remove non-empty content restriction 2023-03-02 23:01:54 +01:00
smiley cc58c403f8 :octocat: do not throw in QRDataModeInterface::validateString() (#182) 2023-03-01 20:11:45 +01:00
smiley 72878502b6 :octocat: Kanji second byte validation causes too many issues 2023-02-01 18:22:49 +01:00
smiley 9c0f6ac065 🚿 some docblocks and typos 2023-01-31 23:49:33 +01:00
smiley a02012a283 :octocat: ReedSolomonEncoder: add constructor 2023-01-31 19:05:23 +01:00
smiley 232c1857f0 :octocat: add subset indicator for Hanzi mode 2023-01-31 15:40:52 +01:00
smiley 989c816197 :octocat: 2023-01-31 02:54:23 +01:00
smiley 99e84efaa3 :octocat: added Hanzi (GB2312/GB18030) mode according to GBT18284-2000 2023-01-31 02:19:20 +01:00
smiley fb79fe43db :octocat: added QRData::getBitBuffer() 2023-01-31 00:59:05 +01:00
smiley 8a1171b1a7 :octocat: rename public constant "sjisEncoding" => "ENCODING" 2023-01-30 23:57:20 +01:00
smiley 4da90c5c3b :octocat: improved Kanji validation (fingers crossed) 2023-01-30 18:22:47 +01:00
smiley eeb7169d68 :octocat: require only either $logoSpaceWidth or $logoSpaceHeight 2023-01-28 16:47:34 +01:00
smiley c03aafcf18 🔧 PHP 8.2 str_split() fix 2022-10-05 20:16:47 +02:00
smiley 0ae8aa775f 🚿 2022-10-05 20:12:26 +02:00
smiley c43715795d 🚿 2022-08-09 15:01:31 +02:00
smiley 9b36cfb4a5 :octocat: +QRData::setBitBuffer() (see #143) 2022-08-08 21:59:27 +02:00
smiley d6f1500ee1 🚿 2022-07-28 02:19:41 +02:00
smiley 9db842d6ca :octocat: +several coverage tests & cleanup 2022-07-26 17:15:49 +02:00
smiley fd3709d1bb :octocat: shortcut for Mode::getLengthBitsForVersion() 2022-07-25 20:04:21 +02:00
smiley 38823d57cb 🚿 2022-07-25 10:57:52 +02:00
smiley f414762148 :octocat: QRData::setData(): clear BitBuffer before write 2022-07-23 03:56:44 +02:00
smiley c8c981d9b3 :octocat: Number::parseInt(): unnecessary throw as the string is validated at this point 2022-07-23 03:32:24 +02:00
smiley cda00d293a :octocat: Byte: string "0" fails with empty() 2022-07-23 03:30:58 +02:00
smiley b48a58462c 🚿 extract version and mask pattern constants from QRCode to their respective classes and mark QRCode::VERSION_AUTO and QRCode::MASK_PATTERN_AUTO as deprecated 2022-07-14 19:22:37 +02:00
smiley 605dc4b1aa 🚿 QRMatrix: quiet zone creation rework 2022-07-12 19:53:52 +02:00
smiley 60735bafc2 🚿 2022-07-12 19:23:20 +02:00
smiley 2a5214b070 :octocat: +QRMatrix::checkNeighbours() 2022-07-10 17:54:12 +02:00
smiley 1f435dfd54 🚿 rename QRMatrix::checkTypes() to checkTypeNotIn() and switch return value to better reflect what it actually does 2022-06-06 07:43:16 +02:00
smiley 964f37ba96 :octocat: QRMatrix: added several isset() checks to get/set methods 2022-06-05 21:08:04 +02:00
smiley 7c183e7e88 🛀 merge QRMatrix and BitMatrix 2022-05-26 22:16:19 +02:00
smiley fd885fff1c 🚿 moved interleaved data mapping from QRMatrix to ReedSolomonEncoder 2022-05-14 00:30:12 +02:00
codemasher f7521c9227 🚿 force int because PHP8.1 hates this 2021-12-13 00:09:45 +01:00
codemasher cdd8aea40a 🚿 force int because PHP8.1 hates this 2021-12-13 00:00:17 +01:00
codemasher 14b6f822be 🚿 force int because PHP8.1 hates this 2021-12-12 23:57:29 +01:00
codemasher 317fbb6f24 🚿 make exceptions final 2021-12-12 02:02:39 +01:00
codemasher 278554af0d 🚿 2021-12-09 01:32:44 +01:00
codemasher 1aee1e90ca :octocat: QRMatrix: ignore logo w/h 0, throw on invalid dimensions 2021-12-08 16:36:17 +01:00
codemasher 5527ba3437 🚿 2021-12-07 16:09:13 +01:00
codemasher 6006df8c9a 🛀 SVG output rework 2021-12-06 21:27:40 +01:00
codemasher 5c2c92667a 🛀 fix/cleanup/move mask pattern evaluation, don't alter matrix for evaluation 2021-12-01 16:52:18 +01:00
codemasher 217063184b 🚿 2021-11-29 19:08:55 +01:00
codemasher 48b6c21090 🛀 QRDataModeInterface: validate data on init, test cleanup 2021-11-28 18:25:06 +01:00
codemasher 9fde82f9c2 🚿 remove DATA_* prefix from Mode::* constants 2021-11-26 23:09:56 +01:00
codemasher 738294e344 🚿 mask pattern cleanup 2021-11-26 20:36:27 +01:00
codemasher 153603a5dc 🛀 more docblock cleanup & micro optimizations 2021-11-21 11:41:40 +01:00
codemasher 6a5be44ea4 🚿 docblocks (WIP) 2021-11-18 13:32:46 +01:00
codemasher 17d0bc0dd9 :octocat: change classnames to "self" on several returns 2021-11-18 13:01:46 +01:00
codemasher c3d299153a Merge branch 'v5'
# Conflicts:
#	.github/workflows/tests.yml
#	.travis.yml
#	README.md
#	composer.json
#	examples/imageWithLogo.php
#	examples/svg.php
#	src/QRCode.php
2021-11-18 12:00:10 +01:00
codemasher 9710a30448 :octocat: moved MaskPatternTester to Common 2021-06-05 18:25:44 +02:00
codemasher d1936de3ba :octocat: change visibility in final classes to private 2021-06-05 18:19:55 +02:00