You want to create an image text label.
Use GD library that can be built-in to PHP. Or just use my free on-line tool to create it, as shown in example below.
Once GD is built in – use this PHP code to generate the label.
This shows the label .
You can use this to generate black blank images, with white superimposed text over the top: