It's a CakePHP plugin for easily use Gravatar service.
[Manual]
- Download the Gravatar archive.
- Unzip that download.
- Rename the resulting folder to
Gravatar
- Then copy this folder into
app/Plugin/
[GIT Submodule]
In your app directory type:
git submodule add git://github.com/LowG33kDev/cakephp-gravatar-plugin.git Plugin/Gravatar
git submodule init
git submodule update
[GIT Clone]
In your plugin directory type
git clone git://github.com/LowG33kDev/cakephp-gravatar-plugin.git Gravatar
- In 2.x you need to enable the plugin your
app/Config/bootstrap.php
file. If you are already usingCakePlugin::loadAll();
, then the following is not necessary.:
CakePlugin::load('Gravatar');
If you have a problem with Grvatar please open an issue on GitHub.
This plugin uses Gravatar configurations
- secure : true to use https, false otherwise (default is false)
- extension : .jpg, .jpeg, .png or .gif (default is empty)
- size : beetween 1 and 2048 (default is 80)
- default : mm, identicon, monsterid, wavatar, retro, blank or custom url picture (default is mm)
- forcedefault : true to force default picture, false otherwise (default is false)
- rating : g, pg, r or x (default is g)
- image-options : is an array. It's the same like HTMLHelper::image