Generator instance, keeping the original state intact. Chain as many calls as you need before calling generate() or any data-type method to produce your final QrCodeResult.
style()
Optional scaling factor for the module size, between
0.0 and 1.0. Useful
with dot style to add spacing between dots. Defaults to the renderer’s
built-in size.eye()
internalEye()
eye() to create composite eye designs.
eyeColor()
The index of the eye to color. Accepted values:
0, 1, 2 (top-left,
top-right, bottom-left respectively).Color for the inner square of the eye. Pass a hex string (e.g.
'#e11d48') or an RGB array (e.g. [225, 29, 72]).Color for the outer ring of the eye. Accepts the same formats as
inner.
When null, the outer ring inherits the global foreground color set by
color().size()
margin()
4 modules is recommended by the QR specification for reliable scanning.
format()
encoding()
UTF-8, which handles most use cases including multibyte characters.
errorCorrection()
cache()
The time-to-live for the cached QR code. Pass an integer (seconds), a
DateInterval instance, a DateTimeInterface expiration time, or null to use the default cache TTL configured in config/qrcode.php (default: 1440 minutes / 24 hours).withoutCache()
config/qrcode.php.