:octocat:

This commit is contained in:
codemasher
2018-10-19 12:10:01 +02:00
parent 77c62f1153
commit dfeb8ad88a
+1 -11
View File
@@ -104,17 +104,7 @@ $qrcode = new QRCode($options);
$qrcode->render($data);
// ...with additional cache file
$qrcode->render($data, '/path/to/file.png');
```
Once created, you can reuse the `QRCode` object any time:
```php
// set new options if needed
$qrcode->setOptions($newOptions);
// render again
$qrcode->render($newData);
$qrcode->render($data, '/path/to/file.svg');
```
In case you just want the raw QR code matrix, call `QRCode::getMatrix()` - this method is also called internally from `QRCode::render()`. See also [Custom output modules](#custom-qroutputinterface).