Giter VIP home page Giter VIP logo

php-dynamic-qr-code's People

Contributors

0xrenegade avatar ayhamal-ali avatar chilluniverse avatar giandonatoinverso avatar neoteknic avatar nirpt avatar tranmh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-dynamic-qr-code's Issues

Export+Import Functionality

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? 🤔

Bulk QR code upload/creation feature request (via CSV file etc.)

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:

  1. Generate a large set of QR codes (each with a unique identifier). This is currently done in Excel.
  2. Print out the QR codes using a different software program (Barcode Maker by TEC-IT)
  3. Upload the QR code data (unique identifier and URL) into your PDP-Dynamic-QR-code

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

Missing read.php in root of "qrcode"

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! =)

Install using Portainer

Hello guys,

Does anybody tried to install the application using Portainer?? I've tried but with no chance to succeed 🥲, any guides please?

Detected as malicious attack

Bitdefender is detecting the login process as a malicious attack attempt, subsquently blocking it.

http:///authenticate.php

image

Error When Running docker-compose

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.

  1. 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!

[Question] How to enable logo fetures?

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.

reading QR code

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.

How can it be?

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.

Installation

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.

IDEA: new publish only user role

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

Lacking Privacy Notice / Third Party Gets Data

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.

Help with installing

Trying to run the project locally I get this error when trying to open the install.php
image

I can't get the docker image started either
image

Am I missing requirements or trying to start it in a completely wrong way?

Apache Error

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

How can I install the script by the easiest way.

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.

Dynamic URL created without http prefix

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

HTTPS url are accepted, HTTP url not accepted

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?

Syntax errors after installing

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.

Bulk feature

How can we add bulk feature to it? For dynamic qr code. What kind of way should I follow for this?

Help

Hello i am new to coding can you guide me on how i can run this? Pls

Docker config for local development

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.

Scanned location geolocation, fallback iplocation

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

cannot remove '/usr/share/sensible-utils/bin': Invalid argument

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


[Features request] Tracking, statistics, logo and others.

The script is GREAT, just need to some touch like:

  • Advanced statistics of QR codes with sorting & filters with reports (PDF, excel).
  • Tracking QR codes with reports (PDF, excel).
  • Add Logo inside Dynamic or Static QR.
  • Download QR as (SVG, EPS) format.
  • Able to create multiple Dynamic & static QR codes at once by import excel file includes data like: link, colors code, Size, precision … etc.
  • Able to download mutiple QR images at once.
  • in the future add "Auto update" for script from the settings.

Hope to see these features soon ☺️

Error generating Dynamic QR Code

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

Stuck on Database creation

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

Fatal error when you want to insert a new QR-Code in PHP V8.0.12

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

QR Code not readable in iPhone

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.
2222

Testing Qrcode with logo option

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

Login

What details do I use to login?

application for dynamic QR codes for SMS WhatsApp etc

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

Vcard - the function of the person does not appear

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

Feature: Download as specific file extension/format

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)?

QR designer options

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

FEATURE REQUEST - Create an API

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

🐛 `read.php` not using DB Prefix

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:

$state = $db->query("SELECT state FROM dynamic_qrcodes WHERE identifier='$get_id'");
$link = $db->query("SELECT link FROM dynamic_qrcodes WHERE identifier='$get_id'");
$update = $db->query("UPDATE dynamic_qrcodes SET scan=scan+1 WHERE identifier='$get_id'");

Noob Install

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)

login.php:41 strtotime(date()) - expects at least 1 argument

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

Embed Logo Inside QRCode

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?

Unable to build Docker image

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.