2017 © Pedro Peláez
 

project image-generator

Generate placeholder images with a specific size, color and text (optional).

image

nicoverbruggen/image-generator

Generate placeholder images with a specific size, color and text (optional).

  • Wednesday, December 6, 2017
  • by nicoverbruggen
  • Repository
  • 0 Watchers
  • 4 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Image Generator

This package is intended to be used for quickly generating placeholder images with a specific size, color and text. For more complex use cases, you may want to turn to something like stil/gd-text., (*1)

Requirements

  • PHP 8.1 or higher
  • GD extension

Usage

Make sure you require this package in your composer.json:, (*2)

composer require nicoverbruggen/image-generator

See the example source file that is used to generate and save the sample images. You can generate the following examples:, (*3)

The barebones example A multiline example An avatar, (*4)

Please note that for testing purposes, I used Roboto Black as the TrueType font. (This font is not included in this repository.), (*5)

You can also check out the other source file. You can point your browser directly at this file (assuming you're running a PHP server, of course) and it will directly return a file since the path is set to null., (*6)

Notes

If you do not supply a TrueType font path: * you will be limited in font size options (1 through 5) * you will not be able to render multiline text, (*7)

Tests

./vendor/bin/phpunit tests

Contributions

I am not planning to expand the features of this package at this time. If you've made an improvement or fixed something, you are free to send me a pull request., (*8)

License

MIT., (*9)

See also: LICENSE., (*10)

The Versions

06/12 2017

dev-develop

dev-develop

Generate placeholder images with a specific size, color and text (optional).

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-gd >=7.0

 

by Nico Verbruggen

06/12 2017

dev-master

9999999-dev

Generate placeholder images with a specific size, color and text (optional).

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-gd >=7.0

 

by Nico Verbruggen

06/12 2017

v0.1.0

0.1.0.0

Generate placeholder images with a specific size, color and text (optional).

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-gd >=7.0

 

by Nico Verbruggen