Skip to content

Latest commit

 

History

History
66 lines (43 loc) · 1.62 KB

README.md

File metadata and controls

66 lines (43 loc) · 1.62 KB

They Live Placeholder

:sunglasses:

Generates placeholder images in the style of billboards from John Carpenter's movie They Live.

Requirements

  • GD with FreeType, JPEG and PNG libraries

Install

$ composer install

Start

$ php -S 0.0.0.0:3000 index.php

Usage

http://localhost:3000/{width}x{height}.{format}?text={text}
  • width: Width of the image.
  • height (optional): If omitted, a squared image will be created based on the specified width.
  • format (optional): png (default), gif or jpg are valid formats.
  • text (optional): If no text is specified, random slogans from the movie are used.

Examples

Example Image

http://localhost:3000/600x400

They Live Placeholder Example

Use with Apache

In order to use this script with an Apache server use a .htaccess file to redirect all requests to index.php.

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]

License

Licensed under the MIT License.