• 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QR Code for CodeIgniter 4

#1
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']; 
in the qrlib.php just the including files:

Code:
include $QR_BASEDIR."qrconst.php";
include $QR_BASEDIR."qrconfig.php";
include $QR_BASEDIR."qrtools.php";
include $QR_BASEDIR."qrspec.php";
include $QR_BASEDIR."qrimage.php";
include $QR_BASEDIR."qrinput.php";
include $QR_BASEDIR."qrbitstream.php";
include $QR_BASEDIR."qrsplit.php";
include $QR_BASEDIR."qrrscode.php";
include $QR_BASEDIR."qrmask.php";
include $QR_BASEDIR."qrencode.php";

Any solution or another source to integrate through composer maybe? Thank you.
Reply

#2
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.
Reply

#3
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.
Reply

#4
What do you think about a Javascript Qr Code generator. I have recently used this and it is superb easy. Qrious Github Page
Reply

#5
I ported codeigniter3-qrcode to CI4.

https://github.com/kenjis/ci4-qrcode
Reply

#6
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.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.