sample code for printing a barcode to a locally attached GK420D from a PHP / Laravelle application?

hi there,

I'm creating a web-based PHP app in Laravelle where I want to generate a barcode (could be either 1D or 2D) for a serial number and then print that to a GK420D.  The printer is actually locally attached to a Windows PC where this app is running in Chrome.

 

I've seen references to Browser Print as well as to this program:  GitHub - qzind/tray: Browser plugin for sending documents and raw commands to a printer or attached device.

I'm interested in any suggestions, sample code or guideline recommendations.  

 

Thanks in advance!

Peter