v2.0.1
The package has been updated for PHP 8!
What's new
With named parameter support, now you can do this:
(new ImageGenerator(
targetSize: "150x150",
fontPath: "/System/Library/Fonts/Supplemental/Arial.ttf",
fontSize: 20
))->generate(text: "Hello world");
Upgrade instructions
- The constructor of
ImageGenerator
has changed, so you will want to adopt named parameters. - The method
makePlaceholderImage
still exists (because it was still in v2.0.0), but it is deprecated in favor ofgenerate
.