Welcome Guest, Not a member yet? Register   Sign In
QR Code for CodeIgniter 4
#1

(This post was last modified: 03-27-2020, 10:58 AM by jreklund.)

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

(This post was last modified: 03-27-2020, 11:09 AM by jreklund.)

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

(This post was last modified: 03-28-2020, 01:02 AM by arnezthe.)

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
#7

(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!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB