2017 © Pedro Peláez
 

library holder

A placeholder image generator.

image

t20n/holder

A placeholder image generator.

  • Saturday, October 15, 2016
  • by tr0n
  • Repository
  • 1 Watchers
  • 0 Stars
  • 268 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

Holder

A placeholder image generator., (*1)

image, (*2)

Its framework agnostic but comes with integration for Laravel (Facade, ServiceProvider and route)., (*3)

Install

composer require t20n/holder, (*4)

General Usage

There's the T20n\Holder\Holder class that has make method that accepts height, width, and optionally third parameter color in hex format., (*5)

Example

$holder = new T20n\Holder\Holder;
$holder->make($height, $width, $color = 'A8E6CE');
$holder->response('png');

Laravel Usage

Add the service provider and alias to the config/app.php of your laravel install:, (*6)

  • Provider:T20n\Holder\HolderServiceProvider::class,
  • Alias:'Holder' => T20n\Holder\Facades\HolderFacade::class,

Example

The Laravel Service Provider automatically declares the holder route within ready to use, the response is a png image of the given dimensions., (*7)

Optionally the background color of the image can be set, defaults to #CCCCCC otherwise., (*8)

http://laravel.app/holder/640/480/A8E6CE that is http://laravel.app/holder/{height}/{width}/{[optional]backgroundColor}, (*9)

The Versions

15/10 2016

dev-master

9999999-dev

A placeholder image generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Toni Oriol

laravel image placeholder

15/10 2016

v1.0.1

1.0.1.0

A placeholder image generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Toni Oriol

laravel image placeholder

15/10 2016

v1.0.0

1.0.0.0

A placeholder image generator.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Toni Oriol

laravel image placeholder