reddatas/placeholder-image
最新稳定版本:1.0
Composer 安装命令:
composer require reddatas/placeholder-image
包简介
Un generador simple de imágenes placeholder para Laravel.
README 文档
README
A simple placeholder image generator for Laravel.
Installation
You can install the package via composer:
composer require reddatas/placeholder-image
The package will automatically register itself.
Usage
To generate a placeholder image, simply visit a URL in your application like this:
http://your-app.test/placeholder/{width}/{height?}/{text?}/{bgColor?}/{textColor?}
Parameters
width: The width of the image in pixels.height(optional): The height of the image in pixels. If not provided, the width will be used to create a square image.text(optional): The text to display on the image. If not provided, the dimensions will be displayed.bgColor(optional): The background color of the image in hex format (e.g.,cccccc).textColor(optional): The text color in hex format (e.g.,333333).
Examples
- A 300x200 image:
/placeholder/300/200 - A 300x200 image with custom text:
/placeholder/300/200/Hello - A 300x200 image with custom text and colors:
/placeholder/300/200/Hello/ff0000/ffffff
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-05