2017 © Pedro Peláez
 

project gravatar

Gravatar Module.

image

taskforcedev/gravatar

Gravatar Module.

  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

Gravatar

A simple gravatar class., (*1)

Installation

Step 1: Add the following package to your composer.json.

require {
  "taskforcedev/gravatar": "1.0.*",
}

Step 2: Run composer update.

composer update

Usage

Using the class is as very straightforward., (*2)

Example, (*3)

use Taskforcedev\Gravatar;

$gravatar = new Gravatar();

$avatar = $gravatar->getAvatar($user, $options);

$user can be any of the following: - An array with a key containing the email address. - A Laravel User object. - A class with a getEmail() method or email property., (*4)

$options is optional - $options['secure'] - By default this is true for https but can also be set to false for http. - $options['size'] - Defaults to 100 (px), accepts any int value., (*5)

Exceptions

If for any reason the class fails to retrieve a gravatar false will be returned., (*6)

The Versions

25/08 2016

dev-master

9999999-dev

Gravatar Module.

  Sources   Download

GPL-3.0

The Development Requires

laravel gravatar

06/12 2015

v1.0.0

1.0.0.0

Gravatar Module.

  Sources   Download

GPL-3.0

laravel gravatar