mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-28 02:57:57 +00:00
:octocat:
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user