Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 16, 2021. It is now read-only.
/ placeholder Public archive

Generate placeholder graphics for design mock-ups with this simple PHP script.

Notifications You must be signed in to change notification settings

evansims/placeholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

What is php-placeholder?

It's a PHP based script that generates placeholder graphics for use in visual mockups, design prototypes, and so on. When you're "in the zone" with your code and you don't want to break out Photoshop or Pixelmator, just have this script accessible somewhere, hot link it in with the appropriate parameters for your situation and you're good to go.

php-placeholder includes Jason Kottke's Silkscreen font for generated text.

Examples

Installation

Couldn't be simpler. Download it, drop it in a folder, and hot link to the script from your page. It just requires a relatively recent version of PHP with GD installed.

Customizing

You can customize the output of the placeholder art by passing URL parameters to the script. Supported options include: width, height, color, text, font, fontsize, rounded (enabled by default, pass it false to disable.) and grid.

Example:

The Grid option overrides the default "X" styling and instead renders a rectangular grid pattern, the size of which is assigned by the "grid" parameter. If you want a grid with 20px blocks, you'd set grid=20. Simple, eh?

About

Generate placeholder graphics for design mock-ups with this simple PHP script.

Resources

Readme

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages