$renderer
$renderer : \BaconQrCode\Renderer\RendererInterface
Renderer instance.
QR code writer.
$renderer : \BaconQrCode\Renderer\RendererInterface
Renderer instance.
writeString(string $content, string $encoding = Encoder::DEFAULT_BYTE_MODE_ECODING, ?\BaconQrCode\Common\ErrorCorrectionLevel $ecLevel = null) : string
Writes QR code and returns it as string.
Content is a string which should be encoded in UTF-8, in case there are non ASCII-characters present.
string | $content | |
string | $encoding | |
?\BaconQrCode\Common\ErrorCorrectionLevel | $ecLevel |
if the content is empty
writeFile(string $content, string $filename, string $encoding = Encoder::DEFAULT_BYTE_MODE_ECODING, ?\BaconQrCode\Common\ErrorCorrectionLevel $ecLevel = null) : void
Writes QR code to a file.
string | $content | |
string | $filename | |
string | $encoding | |
?\BaconQrCode\Common\ErrorCorrectionLevel | $ecLevel |