2017 © Pedro Peláez
 

library gravatar

A very simple package to get a Gravatar image or Profile. Made for education purposes for http://jejje.net

image

jejje/gravatar

A very simple package to get a Gravatar image or Profile. Made for education purposes for http://jejje.net

  • Monday, July 13, 2015
  • by JejjE
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Gravatar

Build Status Total Downloads Latest Stable Version Latest Unstable Version License, (*1)

This package is part of a simple tutorial from JejjE's network and and will give you a few simple methods you can call to get a users Gravatar image. Read the Tutorial here, (*2)

Installation

First you'll need to pull in the package via composer, (*3)

"require": {
    "jejje/gravatar": "dev-master"
}

And in your app/config/app.php you'll need to add the Service Provider., (*4)

'providers' => [
    'Jejje\Gravatar\GravatarServiceProvider::class'
];

Usage

You can use it either within your Controller or your View like so., (*5)

public function index() {
    $email = 'jejje@jejje.net';
    $size = 100; // Optional, you may set a default in the config file
    Gravatar::getImageWithLinkToProfile($email, $size);
}

Other methods that are for your disposal are, (*6)

  • Gravatar::getProfileUrl($email)
  • Gravatar::getImageUrl($email, $size)
  • Gravatar::getHash($email)

The Versions

13/07 2015

1.0.0.x-dev

1.0.0.9999999-dev http://jejje.net/php/laravel-5-gravatar-package/

A very simple package to get a Gravatar image or Profile. Made for education purposes for http://jejje.net

  Sources   Download

MIT

The Requires

 

13/07 2015

1.0.0

1.0.0.0 http://jejje.net/php/laravel-5-gravatar-package/

A very simple package to get a Gravatar image or Profile. Made for education purposes for http://jejje.net

  Sources   Download

MIT

The Requires

 

11/07 2015

dev-master

9999999-dev http://jejje.net/php/laravel-5-gravatar-package/

A very simple package to get a Gravatar image or Profile. Made for education purposes for http://jejje.net

  Sources   Download

MIT

The Requires