php-qrcode-detector-decoder
php-qrcode-detector-decoder copied to clipboard
Class 'QrReader' not found
i have install "khanamiryan" But Class 'QrReader' not found Please help me
same issue here. using PHP 5.6.30, gd enabled
See #43
Use the Zxing namespace when initializing your class. $qrcode = new Zxing\QrReader($image);
I had the same error, I've made the correction as you said, but I've a new error:
Fatal error: Uncaught Error: Class 'Zxing\Zxing\GDLuminanceSource' not found in C:\xampp\htdocs\QRdetector\lib\QrReader.php:70 Stack trace: #0 C:\xampp\htdocs\QRdetector\qrReader.php(11): Zxing\QrReader->__construct('uploads/hello_w...') #1 {main} thrown in C:\xampp\htdocs\QRdetector\lib\QrReader.php on line 70
Help would be nice! Thanks
Ok that was my fault: didn't execute the composer requiery in the right place! Thanks for the code anyway
This should be written in the readme file!
This is a really important information. You can be in the dark for hours if you don't know the namespace the class is in.