khanamiryan / php-qrcode-detector-decoder

This is a PHP library to detect and decode QR-codes. This is first and only QR code reader that works without extensions.
Apache License 2.0
1.37k stars 325 forks source link

Class not found: Example missing namespace #43

Open Enormity opened 6 years ago

Enormity commented 6 years ago

You cannot call "new QrReader('image.jpg')" because the class is not found. You need to add "Zxing\" before it, like below:

$qrcode = new Zxing\QrReader('barcode.jpg');

khanamiryan commented 6 years ago

Hello, thank you for your issue. How you think, what is right decision? Add Namespace in example, or remove namespace from all code? And what namespace use?