lowg33kdev / cakephp-gravatar-plugin
CakePHP Gravatar plugin
Installs: 974
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 1
Type:cakephp-plugin
Requires
- cakephp/cakephp: ~3.0
Requires (Dev)
- cakephp/cakephp-codesniffer: dev-master
- phpunit/phpunit: 4.1.*
This package is not auto-updated.
Last update: 2024-12-21 18:37:03 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 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