Built-In-Output-QRMarkupSVG.md.txt 2.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # QRMarkupSVG
  2. [Class `QRMarkupSVG`](https://github.com/chillerlan/php-qrcode/blob/main/src/Output/QRMarkupSVG.php): [Scalable Vector Graphics](https://developer.mozilla.org/en-US/docs/Glossary/SVG) (SVG) output
  3. ## Options that affect this module
  4. | property | type |
  5. |--------------------------------|----------------|
  6. | `$imageBase64` | `bool` |
  7. | `$eol` | `string` |
  8. | `$drawLightModules` | `bool` |
  9. | `$drawCircularModules` | `bool` |
  10. | `$circleRadius` | `float` |
  11. | `$keepAsSquare` | `array` |
  12. | `$connectPaths` | `bool` |
  13. | `$excludeFromConnect` | `array` |
  14. | `$cssClass` | `string` |
  15. | `$markupDark` | `string` |
  16. | `$markupLight` | `string` |
  17. | `$svgAddXmlHeader` | `bool` |
  18. | `$svgOpacity` | `float` |
  19. | `$svgDefs` | `string` |
  20. | `$svgViewBoxSize` | `int\|null` |
  21. | `$svgPreserveAspectRatio` | `string` |
  22. | `$svgWidth` | `string\|null` |
  23. | `$svgHeight` | `string\|null` |
  24. ### Options that have no effect
  25. | property | reason |
  26. |---------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  27. | `$returnResource` | N/A |
  28. | `$bgColor` | background color can be achieved via CSS, `<defs>` or attributes, see also [php-qrcode/discussions/199 (comment)](https://github.com/chillerlan/php-qrcode/discussions/199#discussioncomment-5747471) |
  29. | `$scale` | `$scale` is intended for raster image types, use `$svgViewBoxSize` instead |
  30. | `$imageTransparent` | SVG is transparent by default |