An open-source package used for thousands of labels every day in Morocco.
I built this for the part after an order is placed. Give it the label data, arrange the rows and columns, and it takes care of the PDF.
English, Arabic, and right-to-left layouts work alongside images, barcodes, QR codes, and multiple labels in the same document. The output comes from PHP and TCPDF, so the browser only shows the result.
The example below is a finished two-label PDF. Use "Try it" above when you want to build your own.
Example output
PDF preview