2017 © Pedro Peláez
 

library gravatar

Laravel package to retrieve gravatar url.

image

mikielis/gravatar

Laravel package to retrieve gravatar url.

  • Friday, March 23, 2018
  • by Mikielis
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Total Downloads Latest Stable Version, (*1)

Gravatar for Laravel 5

Installation

Pull in the package through Composer:, (*2)

composer require mikielis/gravatar ~1.0

Or you can add the following to your composer.json file and then run command: composer update., (*3)

"require": {
    "mikielis/gravatar": "~1.0"
}

Include the service provider withing config/app.php. That's the method for Laravel 5.4 and greater., (*4)

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

To use the facade, add the facade alias to config/app.php:, (*5)

'aliases' => [
    'Gravatar' => Mikielis\Gravatar\Facades\Gravatar::class,
];

Usage

Get gravatar URL Within your controllers or views in this way:, (*6)

    Gravatar::getUrl('email@example.com');

If you want to specify a size of gravatar, do it passing second argument (integer):, (*7)

    Gravatar::getUrl('email@example.com', 100);

If you want to get gravatars for more than one email address, you can do it in the following way (passing array):, (*8)

    Gravatar::getUrls(['email@example.com', 'email2@example.com', 'email3@example.com']);

You can still specify your expected size in this way:, (*9)

php Gravatar::getUrls(['email@example.com', 'email2@example.com', 'email3@example.com'], 60);, (*10)

When preferred size is not specified, default size of gravatar is set to 80., (*11)

The Versions

23/03 2018

dev-master

9999999-dev

Laravel package to retrieve gravatar url.

  Sources   Download

MIT

The Requires

 

laravel avatar gravatar

23/03 2018

v1.0.1

1.0.1.0

Laravel package to retrieve gravatar url.

  Sources   Download

MIT

The Requires

 

laravel avatar gravatar

22/03 2018

v1.0.0

1.0.0.0

Laravel package to retrieve gravatar url.

  Sources   Download

MIT

The Requires

  • php >=7.0.2

 

laravel avatar gravatar