Thursday 14 May 2020

QR Code Reader API | Using PHP And Linux OS And Xampp | Khanamiryan Github




QR Codes for testing


You can now download a whole API With VENDOR from:
https://unpossiblepog.com/codes/PHP/KHANAMIRYAN-QR-Code-Reader-For-PHP-version-7.2-And-Onward-With-Composed-Library

Please avoid or flag spams/hateful comments. And do not spam. Enjoy :)
------------------------------------------------

QR Code Github link:-
https://github.com/khanamiryan/php-qrcode-detector-decoder

GD library commands :- (first try without running those commands)
sudo apt-get install php5-gd
sudo apt-get install php7.0-gd
 sudo apt-get install php7.1-gd
sudo apt-get install php7.2-gd

LUBUNTU : Install, Launch & Uninstall Xampp | Install Sublime Text | Complete PHP Configuration:-
https://youtu.be/X09awd5Q8Bk

Subscribe my Channel:-
http://www.youtube.com/user/SanketRooney?sub_confirmation=1

Facebook Page:-
https://www.facebook.com/UnpossibleNS

Twitter Account:-
https://twitter.com/UnpossiblePOG

Blog :-
https://unpossiblepog.blogspot.in/
------------------------------------------------

Hey guys.
In this video, you will learn how to integrate QR code reader on website using PHP.
In this case, I will be using khanamiryan’s github package because people on internet claims that
it is the purest form of QR Code reader.
(Link in the description.)
Requirement is any linux from Debian family with xampp installed and php version better than 5.6.
Download the package.
Put that in htdocs folder of xampp, extract it.
Make sure to change permission to make it editable for everyone.
Rename it if you want to.
Inside that folder, there is a readme file which provides same steps as given below in github link.
So go back to htdocs folder and open qr code’s folder in terminal.
Install composer by tying this command. --> sudo apt install composer
Then enter your password.

Now, I provided in descriptions, 4 commands of installing GD library for each PHP versions from 5.6 to 7.2.
I suggest you to skip installing GD library, and install only if the main command gives you an error.
Now I shall be executing main command as they described by copy-pasting it in terminal.
Now if you check inside folder, there is vendor folder downloaded.
I shall be creating index.php file in main folder.
Lets check if it is working.
Now add PHP tag and paste the code they provided.
echo the text variable.
Now I have some QR code images, I shall paste them in our folder.( I shall provide them in blog link given in description.)
And paste the file name here.
Now, if you execute, there will be an error like Class QrReader not found.
So to fix it, rename function as this. (Zxing\QrReader).
And now if you execute, it will display content hidden inside QR code.
Lets try different QR code.
Don’t forget to like, share and subscribe.
Thanks for watching. 


No comments:

Post a Comment