Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Placeholder Image Laravel Package

reddatas/placeholder-image

View on GitHub
Deep Wiki
Context7

Placeholder Image Generator for Laravel

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

MIT

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle