lowg33kdev / cakephp-gravatar-plugin
CakePHP Gravatar plugin
Package info
github.com/LowG33kDev/cakephp-gravatar-plugin
Type:cakephp-plugin
pkg:composer/lowg33kdev/cakephp-gravatar-plugin
1.1.0
2015-03-26 23:20 UTC
Requires
- cakephp/cakephp: ~3.0
Requires (Dev)
- cakephp/cakephp-codesniffer: dev-master
- phpunit/phpunit: 4.1.*
This package is not auto-updated.
Last update: 2026-03-15 00:56:18 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.phpfile. If you are already usingCakePlugin::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