From 0400ece35da62c63c7cd53f1b0f5c3a1ae7094dd Mon Sep 17 00:00:00 2001 From: Jeroen van den Enden Date: Sun, 28 Feb 2021 01:27:04 +0000 Subject: [PATCH] Update documentation --- README.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index aaa69df..07baa71 100644 --- a/README.md +++ b/README.md @@ -90,21 +90,18 @@ $result = Builder::create() ```php -// Set additional writer options (SvgWriter example) -$qrCode-> - // Directly output the QR code -header('Content-Type: '.$qrCode->getContentType()); -echo $qrCode->writeString(); +header('Content-Type: '.$result->getMimeType()); +echo $result->getString(); // Save it to a file -$qrCode->writeFile(__DIR__.'/qrcode.png'); +$result->saveToFile(__DIR__.'/qrcode.png'); // Generate a data URI to include image data inline (i.e. inside an tag) -$dataUri = $qrCode->writeDataUri(); +$dataUri = $result->getDataUri(); ``` -![QR Code](https://endroid.nl/qr-code/Life%20is%20too%20short%20to%20be%20generating%20QR%20codes.png) +![QR Code](https://endroid.nl/qr-code/default/Life%20is%20too%20short%20to%20be%20generating%20QR%20codes) ### Writer options