2017 © Pedro Peláez
 

library phpframework-placeimg

image

app-zap/phpframework-placeimg

  • Tuesday, April 21, 2015
  • by smichaelsen
  • Repository
  • 2 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PlaceImg - Libary for image placeholders

This package is intended to be used with the PHPFramework., (*1)

What it does

It provides a function that returns HTML placeholder image tags and is built to be used as twig function., (*2)

How to use

Use {{ placeimg(300, 200) }} in your twig templates and will get a ready-to-use img tag (e.g. <img src="http://lorempixel.com/300/200" />) with a dummy image., (*3)

Optionally you can provide additional attributes as a third parameter: {{ placeimg(300, 200, 'class="mainimage"')}}., (*4)

Example:, (*5)

, (*6)

You just want an image url? Try {{ placeimg_url(300, 200) }}!, (*7)

Configuration

Via settings.ini you can choose between different image placeholder providers., (*8)

[application]
placeimg_provider = "placebear"

The following providers are supported at the moment:, (*9)

Disclaimer

Please notice that I don't run these providers and there's no guarantee that they will be available for ever., (*10)

If you notice that one of these providers is offline very frequently -or even for ever- please open an issue., (*11)

If you know a provider that's missing please open an issue., (*12)

The Versions

21/04 2015

dev-develop

dev-develop

  Sources   Download

The Requires

 

17/09 2014

0.0.1

0.0.1.0

  Sources   Download

The Requires