Weave 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.
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk