Skip to content

Commit

Permalink
Describe data URI option
Browse files Browse the repository at this point in the history
  • Loading branch information
endroid committed Apr 16, 2020
1 parent 632fe77 commit f10c599
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ $qrCode->writeFile(__DIR__.'/qrcode.png');

// Create a response object
$response = new QrCodeResponse($qrCode);

// Generate a data URI to include image data inline (i.e. inside an <img> tag)
$dataUri = $qrCode->writeDataUri();
```

![QR Code](https://endroid.nl/qr-code/Life%20is%20too%20short%20to%20be%20generating%20QR%20codes.png)
Expand Down

0 comments on commit f10c599

Please sign in to comment.