PHPackages                             mikielis/gravatar - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mikielis/gravatar

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mikielis/gravatar
=================

Laravel package to retrieve gravatar url.

v1.0.1(8y ago)013MITPHPPHP &gt;=7.0.2

Since Mar 22Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Mikielis/gravatar)[ Packagist](https://packagist.org/packages/mikielis/gravatar)[ RSS](/packages/mikielis-gravatar/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

[![Total Downloads](https://camo.githubusercontent.com/3dc47384225a473e1992965cde41ecb5837e82f49484b0655ab97fa46978f529/68747470733a2f2f706f7365722e707567782e6f72672f6d696b69656c69732f67726176617461722f642f746f74616c2e737667)](https://packagist.org/packages/mikielis/gravatar)[![Latest Stable Version](https://camo.githubusercontent.com/4c830f96b528fde8f002fc5e4b0d75b4d33df12f88b1b772212a1dcde9c065fe/68747470733a2f2f706f7365722e707567782e6f72672f6d696b69656c69732f67726176617461722f762f737461626c652e737667)](https://packagist.org/packages/mikielis/gravatar)

Gravatar for Laravel 5
======================

[](#gravatar-for-laravel-5)

Installation
============

[](#installation)

Pull in the package through Composer:

```
composer require mikielis/gravatar ~1.0
```

Or you can add the following to your composer.json file and then run command: `composer update`.

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

Include the service provider withing `config/app.php`. That's the method for Laravel 5.4 and greater.

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

To use the facade, add the facade alias to `config/app.php`:

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

Usage
=====

[](#usage)

Get gravatar URL Within your controllers or views in this way:

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

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

```
    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):

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

You can still specify your expected size in this way:

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

When preferred size is not specified, default size of gravatar is set to 80.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3021d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7327076?v=4)[Kamil Mikielis](/maintainers/Mikielis)[@Mikielis](https://github.com/Mikielis)

---

Tags

laravelgravataravatar

### Embed Badge

![Health badge](/badges/mikielis-gravatar/health.svg)

```
[![Health](https://phpackages.com/badges/mikielis-gravatar/health.svg)](https://phpackages.com/packages/mikielis-gravatar)
```

###  Alternatives

[laravolt/avatar

Turn name, email, and any other string into initial-based avatar or gravatar.

2.0k5.6M38](/packages/laravolt-avatar)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k9.6k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90128.1k](/packages/emargareten-inertia-modal)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

3614.9k](/packages/linkxtr-laravel-qrcode)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
