Simple Quick Response (QR) Code Generator Web App Using PHP QR CODE Library With Source Code

Language

This is a simple project that has a Quick Response Code Generator in PHP with the use of PHP QR Code Library. This project's purpose is to share this with the IT/CS students or self-learners to give an idea of how to create a web app that generates a QR Code. The source code has only a minimum scope which only has a simple form that has 3 text/input fields. The fields are the email, subject, and message. These fields will be used for generating a Quick Response Code.

Features

  • Simple Form
  • Generated Quick Response Field
  • Download QR Code as a PNG Format.

Plugins/Libraries Used

  • PHPQRCODE
  • Bootstrap 3.3.7

How the App Works

To generate a Quick Response (QR) Code, the user must fill first all text or input fields provided in the form. After that, when the user will submit the form, the Generated Quick Response Code will be shown on the right side of the screen. The expected text format of the generated QR Code is "mailto:{email}?subject={subject}&body={message}" (i.e. [mailto:[email protected]?subject=Test&body=Hello+World]). Click the Download button below the Generated QR Code to download the code into PNG Format.

Sample Images

Index Page

Index Page

Scanning Sample

Sample Scan

Scanning Result

Scanning Result

How to Run

Requirements:

  • Download and Install any local webserver to run PHP Script such as XAMPP/WAMP.
  • QR Code Scanner for testing. You can also use your smartphone that has a QR Code Scanner Feature/App.
  • Download the provided source code zip file. ( download button is located below )

Setup/Installation

  • Open your XAMPP/WAMP's Control Panel and start the "Apache".
  • Extract the source code zip file.
  • If you are using XAMPP, copy the source code folder and paste it into the XAMPP's "htdocs" directory. And if you are using WAMP, paste it into the "www" directory.
  • Open a web browser and browse the Web Application. i.e. http://localhost/quick-response-code-generator

Demo

That's it! I hope this Simple Quick Response Generator in PHP will help you with what you are looking for and for your future project. Hope You Enjoy My Code:)

Live Preview at codepreview.x10host.com

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

Submitted bynuel112on Wed, 06/14/2017 - 18:21

Please attach the index.php file cos the embedded is empty

In what part of my code does index.php is missing? Actually, index.php is there, in every directory. But there is no code written on it. It's purpose is just to hide the folders content from web browsers.
Submitted bymz (not verified)on Fri, 09/24/2021 - 14:10

got this Call to undefined function ImageCreate()

Add new comment