reddatas/placeholder-image

Un generador simple de imágenes placeholder para Laravel.

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:laravel-package

pkg:composer/reddatas/placeholder-image

1.0 2025-11-05 18:06 UTC

This package is auto-updated.

Last update: 2025-12-05 18:19:23 UTC


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

MIT