lowg33kdev/cakephp-gravatar-plugin

CakePHP Gravatar plugin

1.1.0 2015-03-26 23:20 UTC

This package is not auto-updated.

Last update: 2024-10-26 18:01:06 UTC


README

It's a CakePHP plugin for easily use Gravatar service.

Installation

[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

Enable plugin

  • In 2.x you need to enable the plugin your app/Config/bootstrap.php file. If you are already using CakePlugin::loadAll();, then the following is not necessary.:
    CakePlugin::load('Gravatar');

Reporting Issues

If you have a problem with Grvatar please open an issue on GitHub.

Documentation

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