2017 © Pedro Peláez
 

library laravel-gravatar

The easiest way to generate Gravatar avatar URL.

image

elfsundae/laravel-gravatar

The easiest way to generate Gravatar avatar URL.

  • Friday, January 5, 2018
  • by ElfSundae
  • Repository
  • 1 Watchers
  • 23 Stars
  • 334 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 8 Versions
  • 21 % Grown

The README.md

Laravel Gravatar Helper

, (*1)

Latest Version on Packagist Software License Build Status StyleCI Code Coverage, (*2)

The easiest way to generate Gravatar avatar URL, with multiple connections support., (*3)

Installation

You can install this package using the Composer manager:, (*4)

$ composer require elfsundae/laravel-gravatar

Then copy the configuration file to your application:, (*5)

$ cp vendor/elfsundae/laravel-gravatar/config/gravatar.php config/gravatar.php

For Lumen, you need to load the configuration file in your bootstrap/app.php :, (*6)

$app->configure('gravatar');

API

gravatar() is a global helper function you can use anywhere., (*7)

/**
 * Generate Gravatar avatar URL for the given email address.
 *
 * @param  string      $email       Email or email hash
 * @param  string|int  $connection  Connection name or image size
 * @param  string|int  $size        Connection name or image size
 * @return string
 */
function gravatar($email, $connection = 'default', $size = null)

Usage

// For an email address, using the "default" connection configuration
gravatar('foo@example.com');

// For an email MD5 hash, using the "default" connection configuration
gravatar('b48def645758b95537d4424c84d1a9ff');

// Using the "large" connection
gravatar($email, 'large');

// Using the "default" connection, and overriding "size" parameter to 100
gravatar($email, 100);

// Using the "avatar" connection, and overriding "size" parameter to 100
gravatar($email, 'avatar', 100);
gravatar($email, 100, 'avatar');

The Versions

05/01 2018

dev-master

9999999-dev https://github.com/ElfSundae/laravel-gravatar

The easiest way to generate Gravatar avatar URL.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel helper gravatar

05/01 2018

2.2.1

2.2.1.0 https://github.com/ElfSundae/laravel-gravatar

The easiest way to generate Gravatar avatar URL.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel helper gravatar

02/01 2018

2.2.0

2.2.0.0 https://github.com/ElfSundae/laravel-gravatar

The easiest way to generate Gravatar avatar URL.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel helper gravatar

29/12 2017

2.1.0

2.1.0.0 https://github.com/ElfSundae/laravel-gravatar

The easiest way to generate Gravatar avatar URL.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel helper gravatar

14/11 2017

2.0.0

2.0.0.0 https://github.com/ElfSundae/laravel-gravatar

The easiest way to generate Gravatar avatar URL.

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel helper gravatar

13/11 2017

1.x-dev

1.9999999.9999999.9999999-dev https://github.com/ElfSundae/laravel-gravatar

The easiest way to generate Gravatar avatar URL.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel helper gravatar

13/11 2017

1.0.2

1.0.2.0 https://github.com/ElfSundae/laravel-gravatar

The easiest way to generate Gravatar avatar URL.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel helper gravatar

15/09 2017

1.0.1

1.0.1.0 https://github.com/ElfSundae/laravel-gravatar

Laravel Gravatar Helper

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

laravel helper gravatar