From 0703badbe7a30c5d35e9285e4df780c2cadf05d7 Mon Sep 17 00:00:00 2001 From: Smudger1 Date: Fri, 5 Apr 2019 11:35:15 +0100 Subject: [PATCH] Updated the PHP in the README.md file This change should mean that it works without the need to change anything, also got it to display the text gained. Saw in the issues that quite a few people had this problem. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f4eda03..efd933b 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,9 @@ $ composer require khanamiryan/qrcode-detector-decoder ## Usage ```php require __DIR__ . "/vendor/autoload.php"; -$qrcode = new QrReader('path/to_image'); +$qrcode = new Zxing\QrReader('path/to_image'); $text = $qrcode->text(); //return decoded text from QR Code +echo $text; ``` ## Requirements