/PHPBarcodeGenerator

PHP Barcode Generator with support of QRCode, EAN8, EAN13, Code39, Code128, QRCode Decoder

Primary LanguagePHPGNU Lesser General Public License v2.1LGPL-2.1

PHP Barcode Generator

It helps to generate a Barcode

Suports following type QRCode EAN8 EAN13 Code39 Code128 UPCA

Features

  • QRCode
  • EAN8
  • EAN13
  • Code39
  • Code128
  • UPCA

Run Locally

Clone the project

  git clone git@github.com:sthpratik/PHPBarcodeGenerator.git

Go to the project directory

  cd PHPBarcodeGenerator

Build container. Not Required. Docker compose up should trigger creating image

  docker build -t phpbarcodegenerator .

Start the server

  docker compose up -d

Access it on port 3080

  http://localhost:3080/?type=QRCode&data=https://www.etsy.com/shop/CreateGiftStudio

To stop service

  docker compose down

Deployment

To deploy this project run

docker stack deploy -c docker-compose.deploy.yml barcode  

This pulls the container from the dockerhub

API Reference

  GET /?type=EAN8&data=123456
  GET /?type=EAN13&data=123456
  GET /?type=Code39&data=123456&level=L&size=10
  GET /?type=QRCode&data=QRCode
Parameter Type Description Values Default
type string Not Required. Barcrode Type QRCode/EAN8/EAN13/Code39/Code128/UPCA QRCode
data string Required. Data for barcode Text/Number for Barcode http://softechpro.co
level string Not Required. Used for QRCod 'L','M','Q','H' L
size string Not Required. QRCode Image size 1-10 4

🚀 About Me

I'm a full stack developer...

🔗 Links

linkedin

Related

This is based on the library PHPQRCOde

PHPQRCode