Search code examples
phpqr-codebarcodebarcode-printing

what type of printer to print QR code and how to print qr code with php?


I am creating qrcode generator with php. the application is ready and able to create qr code image successfully. I am planning to buy barcode printer but I am not sure if all barcode printer can print qr code. I have questions regarding this issues.

  1. is there any specific printer to print qr code or any type of barcode printer can print qr code?
  2. do i need to use "printer own programming language" to print qr code? ( i read this blog, she says she need to use "printer own programming language" to print barcode.

Solution

  • If you plan to use a "Barcode Printer" you don't need to build your own barcode image. You can simply send the printer commands to print the type of barcode you want, QRcode or others, and send the data. The printer is taking care of the formatting.

    As an example, Zebra Technologies' barcode printers use ZPL (Zebra Printing Language) and you can use the ^BQ command to print a QRcode.

    The most critical piece is how you handle the drivers and the connection between the browser and the printer.

    Having the printer attached to the PC and controlled by a printer driver may not be the best solution, depending how many time you need to replicate the setup.

    You may want to investigate solutions like:

    1. Browser Print: you've a JavaScript API to talk with the printer directly.
    2. Cloud Connect: the printer is connected directly to the server with a secure communication and is the server sending commands to the printer.

    Disclaimer: I work for Zebra Technologies, similar solutions may exist for other printers brand, but I'm not familiar with them.