Simple Barcode Generator using PHP/JavaScript

Language

The Simple Barcode Generator project is a free source code for everyone. To develop this project, I used HTML, PHP, JavaScript (Ajax / jQuery), and Bootstrap. Also, I use the PICQER BARCODE PHP library for the generation of a barcode image. The bar code is commonly used for product identification for inventory and sales, but you can also use it for any purpose basically for fast identification for your system using the barcode scanner or reader device.

About the Project

The Simple Barcode Generator is a project that only uses a single page while executing its features. For this project, you can generate a barcode dynamically or in your desired code and desired type of card. The project can generate Code 128, Code 128 A, Code 128 B, Code 39, Code 39 E, Code 93, EAN 8, and EAN 13 with the help of picqer/barcode PHP library for the barcode. This project also generates the label for your desired barcode and displays also the code below. 

Features

  • Barcode Generation
    • The project will generate a bar code with your given code, label, and type.
  • Print Generated Barcode
    • The project supports printing the generated barcode.
  • Download Generate Barcode
    • The project supports downloading the generated barcode to an image (png).

Libraries used for this Simple Project

  • Picqer/barcode PHP Library [ https://github.com/picqer/php-barcode-generator ]
  • html2canvas JS Library [ https://html2canvas.hertzen.com/ ]
  • jQuery [ https://jquery.com/ ]
  • Bootstrap [ https://getbootstrap.com/ ]

Installation

  1. Set up a local web server that can run a PHP script.
  2. Extract the zip file.
  3. Copy and Paste the extracted files to your local/ virtual server public_html folder. For example, using XAMPP (C:\xampp\htdocs\)
  4. Open a web browser and browse the project. ( http://localhost/barcode-generator-using-php/ )

That's it, you can now explore the features of the simple barcode generator. This project is for educational purposes only. Feel free to download and modify the source code to cater your needs for your project.

Explore this website for more tutorials and source codes.

Enjoy!

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 byreda djelleb (not verified)on Sun, 08/07/2022 - 23:02

it's good
Submitted bykiki232 (not verified)on Thu, 12/08/2022 - 19:19

work

Add new comment