goldfinch/image-generator
最新稳定版本:v3.0.1
Composer 安装命令:
composer create-project goldfinch/image-generator
包简介
Generate placeholder images with a specific size, color and text (optional).
README 文档
README
This package is intended to be used for quickly generating placeholder images with a specific size, color and text.
Requirements
- PHP 8.0 or higher
- GD extension
Usage
Make sure you require this package in your composer.json:
composer require nicoverbruggen/image-generator
See the example source file that is used to generate and save the sample images. You can generate the following examples:
Please note that for testing purposes, I used Roboto Black as the TrueType font. (This font is not included in this repository.)
You can also check out the other source file. You can point your browser directly at this file (assuming you're running a PHP server, of course) and it will directly return a file since the path is set to null.
Notes
If you do not supply a TrueType font path:
- you will be limited in font size options (1 through 5)
- you will not be able to render multiline text
Contributions
I am not planning to expand the features of this package at this time. If you've made an improvement or fixed something, you are free to send me a pull request.
License
MIT.
See also: LICENSE.
统计信息
- 总下载量: 269
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-11

