QR Code for CodeIgniter 4 |
Hello...
I have a source code related to QR Code from here: PHP QRcode I put it at Library directory but I can't call it from $classmap Autoload.php. PHP Code: $classmap = ['QRcode' => APPPATH .'Library/phpqrcode/qrlib.php']; Code: include $QR_BASEDIR."qrconst.php"; Any solution or another source to integrate through composer maybe? Thank you.
I would suggest you go with a more modern QR-code library, that can be installed with Composer instead.
You can find a list on Github. That could possible work, but as it's from 2013, I don't even know if it are using namespace.
Thank you for your reply sir. I have using php-qrcode and install it through composer and easy to call inside CI4. He provides for PHP 7.x versions.
What do you think about a Javascript Qr Code generator. I have recently used this and it is superb easy. Qrious Github Page
I used \Sonata\GoogleAuthenticator\GoogleAuthenticator in my CI4 solution, it has enable/disable 2FA, and plugged it in to pop 2FA on login and when people try to change sensitive data.
https://github.com/sonata-project/GoogleAuthenticator I ported it into my addons folder though manually.
(03-28-2020, 01:00 AM)arnezthe Wrote: Thank you for your reply sir. I have using php-qrcode and install it through composer and easy to call inside CI4. He provides for PHP 7.x versions. Do you have an example of how to use this? ... I could install it via composer, but I don't understand how to use it. Thank you! |
Welcome Guest, Not a member yet? Register Sign In |