$qrcode->toSvg()
Returns the QR code as <svg>
element
Parameters
Name | Type | Default | Description |
---|---|---|---|
$size | string |int |null |
null |
Optional CSS width of the <svg> element |
$color | string |
'#000000' |
Foreground color in hex format |
$back | string |
'#ffffff' |
Background color in hex format |
$border | int |
4 |
Border size in number of modules |
Return type
string