giandonatoinverso / php-dynamic-qr-code Goto Github PK
View Code? Open in Web Editor NEWPHP Dynamic Qr code is a script that allows the generation and saving of dynamic and static QR codes
License: MIT License
PHP Dynamic Qr code is a script that allows the generation and saving of dynamic and static QR codes
License: MIT License
Create the ability to export and import qrcodes en mass in csv, json, etc
How would this even look? The image blob inside a csv? 🤔
I've just stumbled onto your project here and am very excited as it is exactly (almost) what I need. I'm wonder how difficult it would be to include a bulk dynamic QR code upload/creation feature?
My workflow is as follows:
I guess the main feature request is a upload feature. Is this something that is possible? Additionally, I may have access to some funding to help with development costs if you are able to issue an estimate and invoice.
Regards
Jason
Hello, I have installed this software to qr.ware.ly and the installation went fine. I created one dynmic QR code with url https://a.ware.ly, however the url is going here http://qr.ware.ly/read.php?id=K1vom and giving me a 404 page.
Anything I did wrong?
Thanks
Dave
I am using a normal web server and have uploaded the entire contents to the root of my hosted domain. I configured the environment.php.example file in the config folder and renamed to environment.php and I can get in and successfully make a qr code.
problem is when the code is read and clicking on the url it is looking for the read.php file, which is missing. I see here on got in the root repo a read.php file so I pasted it in the root of my folder and got a 500. I see after opening it on ln-12 the path to the include is wrong and I fix it by removing the "qrcode/" in the path as it does not exist.
not sure if this is all a bug but it feels like one - easy fix but still a bit time-consuming chasing this all down -
Thanks for the contribution and in making this app - AWESOME work! =)
Hello guys,
Does anybody tried to install the application using Portainer?? I've tried but with no chance to succeed 🥲, any guides please?
I'm trying to follow along and setup the docker but have run into 2 issues. I have zero experience with docker so I could be missing something.
I got an error saying the version was wrong on the docker-compose.yml file. I commented out and the first line and then I was able to move forward. I'm running v1.25 of docker-compose. Should this be a different version?
root@lamp /qr/docker# PUID="$(id -u)" PGID="$(id -g)" docker-compose config ERROR: The Compose file './docker-compose.yml' is invalid because: Unsupported config option for services: 'qrcode' Unsupported config option for networks: 'qrcode_network' root@lamp /qr/docker#
Any help is greatly appreciated - thanks in advance!
Hello,
I edit "../Dynamic_Qrcode.php" file and remove any " // " related to logo,
then I try to create new dynamic code but I can't see any option about add logo.
I'm having trouble reading the qr code, and when I scan it, it says page not found. I have no experience with programming, so please let me know how I can fix it.
Thank you very much.
I installed it via free domain and hosting. But when I read the qr, I get the error (read.php?id= and giving me a 404 page). There have been a few other people with similar problems, I tried them, but it doesn't work. Looking for the QR in the browser. Can you help me.? pls. I spent too much time on this.
Hey, your project is amazing!
i have a question if it is possible to install it and run without docker, or use Xampp server or similar as im not familiar with docker.
Thank you for any kind of help.
I thought about open my installation for more people, but then I realized that there are only admin-user-roles.
So everyone is able to delete someones QR-codes.
So I like to have a user-role that can only append codes, without editing or anything else, but with a login to fight against bots.
Wrong qr-code ? doesnt matter, make another one.
So i need a hint, where I should dive in the code.....
This application appears to send any QR data entered to https://api.qrserver.com which is operated by a marketing company goQR.me, Nothing about the documentation states that this is not a fully self-hosted application for QR codes as implied by the site information. It should be declared upfront this requires an external API service and that any data entered for QR code generation is being shipped off to a third party. I'm not saying there's anything nefarious with goQR.me, but it should be stated up-front that data is being sent elsewhere.
I cannot find the read.php file
Hi,
I'm trying to setup using docker but when the container tries to run, I have this error and it crashes :
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.64.2. Set the 'ServerName' directive globally to suppress this message
(13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action '-D FOREGROUND' failed.
The Apache error log may have more information.
Do you have any idea ?
Thank you
Hello,
Actually i don't know if this place is a right one for questions,
How can I install the script by cPanel?
I want easiest way to make that please, I'm not programmer, just i had a little experience in install scripts.
and if you can record your screen and upload it on YouTube, it will be great and help me with others.
I installed this application in a subdomain and I created a dynamic QR code. The link created is "subdomain.domain.extension/read.php?idIDENTIFIER" and it works on an Android phone, however on iPhone, the camera "Search for that string on Safari" rather than just sending the browser to that url.
It would be possible to have the function that creates the dynamic link to add the "HTTP" at the beginning of the url?
Could anyone point out to me what is the file that builds the link? I searched a bit but couldn't figure this out.
Thanks
When I try to create a static or dynamic QR Code with an http url, the software displays a message under the url field saying "Insert a value in the requested value" (translated message from Italian Firefox browser). If I type the same url with https, it works. Is it possible to make the program accept http url too?
Hi, first of all: thanks for developing such an interesting piece of software.
After successful installation in a test server, we're seeing that not all pages are opening for some reason, for example:
After initial logging in with the default superadmin user, we try to open the profile or settings menu in the upper-right corner of the screen. They both do nothing.
Trying to list the dynamic qr codes existing gives us this error message:
Parse error: syntax error, unexpected '?' in /home/www/subdomain.domain.tld/qrcode/dynamic_qrcodes.php on line 29
Trying to see the user's list gives this message:
Parse error: syntax error, unexpected '?' in /home/www/subdomain.domain.tld/qrcode/admin_users.php on line 32
Both errors appear to be related to an issue with the page query, but we don't seem to understand where the root cause is located.
Several other pages produce similar syntax error messages.
We made sure MySQL version is 5.6 as requested by the comments inside the code… I'm not sure what else could be the reason for this behavior.
Do you have an idea of what are we doing wrong?
Best regards.
How can we add bulk feature to it? For dynamic qr code. What kind of way should I follow for this?
Hello i am new to coding can you guide me on how i can run this? Pls
Right now the docker config is set for a more static configuration, because it uses release archives and copies those files over into the document root for the webserver - and that works great if you're not constantly editing the code/using version control.
Could we have docker config for the qrcode folder which will mount the current directory into the container (rather than using release archive + copying files) so that when a file is changed, docker doesn't need restarting?
This is not an issue for me personally (docker doesn't work on my pc right now, lol), more for other users who would contribute or use this application.
Hello
New feature;
If someone scanns the QR Code, it should ask for permission to use his gps location with geolocation.
if he says no, use iplocation.
i tried my self to implemend it, but failed
Greetings
remo
Hi, Getting the below message.
I have no ideze where to go now?
#0 8.436 Building dependency tree...
#0 8.521 Reading state information...
#0 8.610 The following packages will be REMOVED:
#0 8.610 sensible-utils
#0 8.719 0 upgraded, 0 newly installed, 1 to remove and 50 not upgraded.
#0 8.719 After this operation, 63.5 kB disk space will be freed.
(Reading database ... 14842 files and directories currently installed.)
#0 8.734 Removing sensible-utils (0.0.12) ...
#0 8.736 dpkg: error processing package sensible-utils (--remove):
#0 8.736 cannot remove '/usr/share/sensible-utils/bin': Invalid argument
#0 8.740 Errors were encountered while processing:
#0 8.740 sensible-utils
#0 8.748 E: Sub-process /usr/bin/dpkg returned an error code (1)
failed to solve: process "/bin/sh -c apt-get update && apt-get install -y --no-install-recommends less nano tini curl tar git zip unzip && apt-get install -y --no-install-recommends iputils-ping dnsutils net-tools procps && apt-get autoremove -y && apt-get clean -y" did not complete successfully: exit code: 100
The script is GREAT, just need to some touch like:
Hope to see these features soon
Hi, firstly thanks for this. I am still learning how to code and I have installed it successfully in a local apache/MySQL server. But whenever I try to create a Dynamic QR Code this error appears. Can you help me?
The Error:
Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\lib\MysqliDb\MysqliDb.php:1848 Stack trace: #0 C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\lib\MysqliDb\MysqliDb.php(1848): implode(Array, ',
') #1 C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\lib\MysqliDb\MysqliDb.php(1572): MysqliDb->_buildInsertQuery(Array) #2 C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\lib\MysqliDb\MysqliDb.php(1533): MysqliDb->_buildQuery(NULL, Array) #3 C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\lib\MysqliDb\MysqliDb.php(820): MysqliDb->_buildInsert('dynamic_qrcodes', Array, 'INSERT') #4 C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\lib\Dynamic_Qrcode\Dynamic_Qrcode.php(127): MysqliDb->insert('dynamic_qrcodes', Array) #5 C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\add_dynamic.php(22): Dynamic_Qrcode->add() #6 {main} thrown in C:\xampp\htdocs\PHP-Dynamic-Qr-code-master\qrcode\lib\MysqliDb\MysqliDb.php on line 1848
Hello.
Installation was without any problems. A version of PHP 7.3 is used. Generated dynamic QR codes are not redirecting to URLs entered during code creations. Scanned QR will just go to: https://installation-domain.com/read.php?id=xxxxxx (nonexisting page)
Thank you in advance for your support.
Hello there!
I started the installation process but got stuck on the Database step.
The database is being created. Please wait!
Nonetheless, when I access the database I see that it was created. I also can see the super admin user and password but when I go to the log in it says Invalid Username and Password.
Any suggestion?
Thanks
Hello,
When I try to add a new dynamic or static QR code, the following error message appears under PHP version 8.
Under version 7.X it works perfectly:
Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in C:\xampp_new\htdocs\qr-dynamic\qrcode\lib\MysqliDb\MysqliDb.php:1848 Stack trace: #0 C:\xampp_new\htdocs\qr-dynamic\qrcode\lib\MysqliDb\MysqliDb.php(1848): implode(Array, '
, ') #1 C:\xampp_new\htdocs\qr-dynamic\qrcode\lib\MysqliDb\MysqliDb.php(1572): MysqliDb->_buildInsertQuery(Array) #2 C:\xampp_new\htdocs\qr-dynamic\qrcode\lib\MysqliDb\MysqliDb.php(1533): MysqliDb->_buildQuery(NULL, Array) #3 C:\xampp_new\htdocs\qr-dynamic\qrcode\lib\MysqliDb\MysqliDb.php(820): MysqliDb->_buildInsert('dynamic_qrcodes', Array, 'INSERT') #4 C:\xampp_new\htdocs\qr-dynamic\qrcode\lib\Dynamic_Qrcode\Dynamic_Qrcode.php(127): MysqliDb->insert('dynamic_qrcodes', Array) #5 C:\xampp_new\htdocs\qr-dynamic\qrcode\add_dynamic.php(22): Dynamic_Qrcode->add() #6 {main} thrown in C:\xampp_new\htdocs\qr-dynamic\qrcode\lib\MysqliDb\MysqliDb.php on line 1848
Not sure why however OFTEN but not always the QR codes I create are not readable from iPhone. Usually I just use the phone camera's and it works. The message that I get from my iPhone is "No usable data found". With Android it works. I searched online the issue and they suggest to restart the iPhone, which I did however it doesn't work. I attach an example of a static QR code created. I had two dynamic QR codes that had the same issue, but I have deleted them and now when I create them they all work. Not sure what it can be. Thanks.
Hi there,
Great app! For testing purposes, I was just wondering if it is possible to have the same logo for every qr code, by including the image link in the Dynamic_Qrcode.php file like $logo = “https://i.stack.imgur.com/ILTQq.png”, instead of getting it from a form ($logo = $_POST[‘optionlogo’]). I have tried to do this, but the app is creating a qrcode without the logo still. I have un-commented all lines but it is still not working. Is there a step that I am missing, or anything else I have to modify in the app?
Many thanks
Any change this can be made into a docker image? Seems very nice!
What details do I use to login?
When I click to create static QR it gives me different options such as WhatsApp SMS PayPal etc. When I click to create dynamic QR it only allows me to create url redirection url
I wish you could also create dynamic QR code for SMS WhatsApp and all the other things that can be created for static QR code
Hello,
Already, thank you for your application which is very complete.
I'm looking to use it to create VCARDs.
It works well, but when you fill in the "role" field, the function of the person does not appear with a phone qrcode scanner.
I tested with my app in production and yours with a test but the result is the same.
I specify that I am French, perhaps that has an impact on the creation of the contact.
Thanking you,
Best regards
Hello,
I want to change default Size & Precision when I press on "Add new" button, How to do it?
Supported formats currently:
<option value="png">PNG</option>
<option value="gif">GIF</option>
<option value="jpeg">JPEG</option>
<option value="jpg">JPG</option>
<option value="svg">SVG</option>
<option value="eps">EPS</option>
Add in ability to download qrcode(s) in a specific file extension/format. Possibly a modal/dropdown menu appears when clicking download button to run a backend function to convert the image type(s) that aren't the same as the chosen format(s)?
Would be really great to have a QR designer option with basic forms. Similar to QRcode Monkey. But self hosted. Otherwise, great app. Just comments to boost it
I am not able to generate any image in qr code
Hi,
Would be awesome to create an API with input variables:
url
filename
output file type (ie PNG, JPG etc)
Precision
Size (px)
Output - download file
Hye,
Just installed your software and thanks and congrats for this. After having the problem of the read.php not in the root folder of the app https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/issues/2 , I have one remaining problem. The dynamic qrcode are created/linked to the non secured (http) domain. Anybody in the same situation?
I enountered an issue with read.php not using the database's prefix that was setup in config/environment.php
which caused it to fail grabbing the QR Code
Related Code:
Lines 18 to 21 in c6cb836
So i've installed LAMP stack on a LXC , but i've read the documentation and i'm still a bit lost on what to do next.
Can anyone give me some pointers? (its gonna be a local machine only, no connection to the outside world, via local IP, so defaults usernames and ports are fine)
Great project – congrats on putting this all together!
In login.php:41, the date()
call should include a mandatory format argument to compare against the expires record. It currently throws an uncaught error:
Fatal error: Uncaught ArgumentCountError: date() expects at least 1 argument, 0 given in /var/www/.../qrcode/login.php:41
Stack trace:
#0 /var/www/.../qrcode/login.php(41): date()
#1 {main} thrown in /var/www/.../qrcode/login.php on line 41
I put the define('DATABASE_PREFIX', "qr_");
during installation, and created database tables without prefix.
Referencing issue which had a list of ideas, and since it was closed, sorting those into their own issues. (issue #27):
Basically the title, add option to embed logo inside a given qrcode. Food for thought: Would this still work on dynamic qrcodes?
When submitting a dynamic URL with long path we get the error "Insert failed: Data too long for column 'link' at row 1". Please advise.
Unable to build the image using the provided Dockerfile, I believe https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/archive/v1.0.0Do.tar.gz is unavailable
docker build ./
Sending build context to Docker daemon 12.29kB
Step 1/28 : FROM php:7.4.21-apache
---> 308df3245e41
Step 2/28 : ARG APP_VERSION=v1.0.0Do
---> Using cache
---> 08b57428a1d5
Step 3/28 : RUN apt-get update && apt-get install -y --no-install-recommends less nano tini curl tar git zip unzip && apt-get install -y --no-install-recommends iputils-ping dnsutils net-tools procps && apt-get autoremove -y && apt-get clean -y
---> Using cache
---> 04cdb36b4add
Step 4/28 : RUN curl -SL -o app.tar.gz "https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/archive/${APP_VERSION}.tar.gz" && mkdir -p /app && tar xvf app.tar.gz -C /app --strip-components=1 && cp -r /app/qrcode/** /var/www/html && rm app.tar.gz
---> Running in 1a9683218a15
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 14 100 14 0 0 21 0 --:--:-- --:--:-- --:--:-- 21
tar: This does not look like a tar archive
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
The command '/bin/sh -c curl -SL -o app.tar.gz "https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/archive/${APP_VERSION}.tar.gz" && mkdir -p /app && tar xvf app.tar.gz -C /app --strip-components=1 && cp -r /app/qrcode/** /var/www/html && rm app.tar.gz' returned a non-zero code: 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.