smartformer / php-imagetextoverlay
Library to overlay a text centered over an image
1.0.4
2021-01-17 23:19 UTC
Requires
- php: >=7.0
README
This is a Helper Class, which will put an overlay Text on an image and generate a new image from it.
Usage
$adder = new Smartformer\ImageTextOverlay\Adder('fonts/Roboto/Roboto-Regular.ttf'); $adder->addTextToJpeg('Your Text', 'input.jpeg', 'output.jpg'); $adder->addTextToPng('Your Text', 'input.png', 'output.png');