Skip to content

tigokr/yii2-image-placeholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image placeholder

Image placeholder

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist tigokr/yii2-image-placeholder "*"

or add

"tigokr/yii2-image-placeholder": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<img src="/placeholder/300x200?text=no+photo">
<img src="/placeholder/300">
<img src="/placeholder/300x200?fg=9bce3b&bg=fff&text=no+photo">

About

simple image placeholder based on GD

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages