• 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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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