Labeler, Rebuilt From a Single PHP Page
November 9, 2026
A few years ago I wrote Labeler, a small web page to print on a Brother P-Touch label printer from my phone. It was one PHP file with a form, and it did exactly two things: One line of text, or two. Then ptouch-print, the tool underneath, got a new command line parser, and the preview and two-line labels stopped working. Looking closer, I also found that the page handed the label text straight to a shell, which is about the worst thing a web form can do. So the old page was not worth fixing, and I rebuilt Labeler from scratch. This post is the tour: What it does now, why it draws in the browser, and how to test a label printer without one.