2017 © Pedro Peláez
 

cakephp-plugin gravatar-helper

A helper that can be used to pull profile pictures from the gravatar service for CakePHP 3.x

image

potatopowered/gravatar-helper

A helper that can be used to pull profile pictures from the gravatar service for CakePHP 3.x

  • Monday, July 25, 2016
  • by KaffineAddict
  • Repository
  • 2 Watchers
  • 2 Stars
  • 225 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 11 % Grown

The README.md

Gravatar Helper

Software License Travis Codecov Scrutinizer Packagist, (*1)

A helper that can be used to pull profile pictures from the gravatar service for CakePHP 3.x, (*2)

Description

The gravatar helper aims to make it easy to pull user avatars from the gravatar service rather than having to rebuilt the basic connection and link generation for the API every time you want to use it. There are many customizations that can be set including defaults and the avatar size returned., (*3)

Installation

composer require potatopowered/gravatar-helper

Add the helper to the public helpers variable of the controller you need it on or in the AppController to have it accessible in all controllers., (*4)

public $helpers = [
    'Gravatar' => [
        'className' => 'GravatarHelper.Gravatar'
    ]
];

Usage

To use the gravatar helper you simply call the avatar function of the Gravatar helper with the user email as the argument. There are also several options you can set to change defaults like size., (*5)

// the avatar of the user with an email of $email
$this->Gravatar->avatar($email, ['size' => 40]);

Options for Avatar

  • size: The width and height of the profile (150 default)
  • default: The default gravatar image (mm default) List Here
  • class: The css class of the image tag (gravatar default)

The Versions

25/07 2016

dev-master

9999999-dev

A helper that can be used to pull profile pictures from the gravatar service for CakePHP 3.x

  Sources   Download

MIT

The Requires

 

The Development Requires

by Blake Sutton

cakephp helper avatar gravatar

23/02 2016

v1.0.0

1.0.0.0

A helper that can be used to pull profile pictures from the gravatar service for CakePHP 3.x

  Sources   Download

MIT

The Requires

 

The Development Requires

by Blake Sutton

cakephp helper avatar gravatar