A simple placeholder image generator for Laravel.
You can install the package via composer:
composer require reddatas/placeholder-image
The package will automatically register itself.
To generate a placeholder image, simply visit a URL in your application like this:
http://your-app.test/placeholder/{width}/{height?}/{text?}/{bgColor?}/{textColor?}
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)./placeholder/300/200/placeholder/300/200/Hello/placeholder/300/200/Hello/ff0000/ffffffPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
How can I help you explore Laravel packages today?