PHPackages                             tomshaw/laravel-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. tomshaw/laravel-gravatar

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

tomshaw/laravel-gravatar
========================

A zero config named parameter Laravel Gravatar Directive.

v0.3.0(1mo ago)16.5k—3.3%MITPHPPHP ^8.2|^8.3|^8.4|^8.5CI passing

Since Apr 14Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/tomshaw/laravel-gravatar)[ Packagist](https://packagist.org/packages/tomshaw/laravel-gravatar)[ Docs](https://github.com/tomshaw/laravel-gravatar)[ RSS](/packages/tomshaw-laravel-gravatar/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (12)Versions (10)Used By (0)

Laravel Gravatar 📸
==================

[](#laravel-gravatar-)

A zero config named parameter Laravel Gravatar Directive.

[![GitHub Workflow Status](https://camo.githubusercontent.com/42f1d2bc02796db54917cdaa1200adc553cb0dbbe85012c96607f7d0e0f2d049/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f746f6d736861772f6c61726176656c2d67726176617461722f72756e2d74657374732e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265266c6162656c3d7465737473)](https://camo.githubusercontent.com/42f1d2bc02796db54917cdaa1200adc553cb0dbbe85012c96607f7d0e0f2d049/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f746f6d736861772f6c61726176656c2d67726176617461722f72756e2d74657374732e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265266c6162656c3d7465737473)[![issues](https://camo.githubusercontent.com/f70ad31cf39e8ee02b5aad53a2f04cdb6523f211fc9893188390d6b7b83abc23/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f746f6d736861772f6c61726176656c2d67726176617461723f7374796c653d666c6174266c6f676f3d6170707665796f72)](https://camo.githubusercontent.com/f70ad31cf39e8ee02b5aad53a2f04cdb6523f211fc9893188390d6b7b83abc23/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f746f6d736861772f6c61726176656c2d67726176617461723f7374796c653d666c6174266c6f676f3d6170707665796f72)[![forks](https://camo.githubusercontent.com/10c6a6c62f23a3b549a132ed7bfd628aebcc8d1e8e897d68d500b4b06f107f00/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f746f6d736861772f6c61726176656c2d67726176617461723f7374796c653d666c6174266c6f676f3d6170707665796f72)](https://camo.githubusercontent.com/10c6a6c62f23a3b549a132ed7bfd628aebcc8d1e8e897d68d500b4b06f107f00/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f746f6d736861772f6c61726176656c2d67726176617461723f7374796c653d666c6174266c6f676f3d6170707665796f72)[![stars](https://camo.githubusercontent.com/d7f01e91ee7b0ca4b9efee4614d700c50e4004411bf6790ba4859747c25463a9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f746f6d736861772f6c61726176656c2d67726176617461723f7374796c653d666c6174266c6f676f3d6170707665796f72)](https://camo.githubusercontent.com/d7f01e91ee7b0ca4b9efee4614d700c50e4004411bf6790ba4859747c25463a9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f746f6d736861772f6c61726176656c2d67726176617461723f7374796c653d666c6174266c6f676f3d6170707665796f72)[![GitHub license](https://camo.githubusercontent.com/3d90d152e2f7a56a8fe26bed2167558303965341bec0ad2d6c5cccea39d673d8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f746f6d736861772f6c61726176656c2d6772617661746172)](https://github.com/tomshaw/laravel-gravatar/blob/master/LICENSE)

 [![blank](https://camo.githubusercontent.com/7f1b18962bf969650f660a8ea0c8d540938e7a2ef56690d677184df223e9fc1b/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f30303030303030303030303030303030303030303030303030303030303030303f733d343026723d7067)](https://camo.githubusercontent.com/7f1b18962bf969650f660a8ea0c8d540938e7a2ef56690d677184df223e9fc1b/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f30303030303030303030303030303030303030303030303030303030303030303f733d343026723d7067) [![mp](https://camo.githubusercontent.com/4c81671f2023b2b115c014b5323f17c5ef973e4a4fadb2d031eec35f1337aba4/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f30303030303030303030303030303030303030303030303030303030303030303f733d343026643d6d7026723d7067)](https://camo.githubusercontent.com/4c81671f2023b2b115c014b5323f17c5ef973e4a4fadb2d031eec35f1337aba4/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f30303030303030303030303030303030303030303030303030303030303030303f733d343026643d6d7026723d7067) [![identicon](https://camo.githubusercontent.com/637873a26cda01ec18676fb25d818fe7db390bf6b1229bb9accf59f4dec6faa9/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f30303030303030303030303030303030303030303030303030303030303030303f733d343026643d6964656e7469636f6e26723d7067)](https://camo.githubusercontent.com/637873a26cda01ec18676fb25d818fe7db390bf6b1229bb9accf59f4dec6faa9/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f30303030303030303030303030303030303030303030303030303030303030303f733d343026643d6964656e7469636f6e26723d7067) [![monsterid](https://camo.githubusercontent.com/c1f8d95d08c571264f3f523ea9ca291cd90364770aa0c4b912a7300c0c88f103/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f30303030303030303030303030303030303030303030303030303030303030303f733d343026643d6d6f6e73746572696426723d7067)](https://camo.githubusercontent.com/c1f8d95d08c571264f3f523ea9ca291cd90364770aa0c4b912a7300c0c88f103/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f30303030303030303030303030303030303030303030303030303030303030303f733d343026643d6d6f6e73746572696426723d7067) [![wavatar](https://camo.githubusercontent.com/11a916f00ba16b48127476154a0f13cff50ee5864adf9c64aef529b66039baed/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f30303030303030303030303030303030303030303030303030303030303030303f733d343026643d7761766174617226723d7067)](https://camo.githubusercontent.com/11a916f00ba16b48127476154a0f13cff50ee5864adf9c64aef529b66039baed/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f30303030303030303030303030303030303030303030303030303030303030303f733d343026643d7761766174617226723d7067) [![retro](https://camo.githubusercontent.com/28a682c380029b786f026b6c62965f8679f9a448aecf924ab73f68e27547ecda/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f30303030303030303030303030303030303030303030303030303030303030303f733d343026643d726574726f26723d7067)](https://camo.githubusercontent.com/28a682c380029b786f026b6c62965f8679f9a448aecf924ab73f68e27547ecda/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f30303030303030303030303030303030303030303030303030303030303030303f733d343026643d726574726f26723d7067) [![robohash](https://camo.githubusercontent.com/0ea45d557f5c2e4b8dea2011f2f8391ecbd24cc65b9e35a9e2c6cf8bc1dfbd3e/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f30303030303030303030303030303030303030303030303030303030303030303f733d343026643d726f626f6861736826723d7067)](https://camo.githubusercontent.com/0ea45d557f5c2e4b8dea2011f2f8391ecbd24cc65b9e35a9e2c6cf8bc1dfbd3e/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f30303030303030303030303030303030303030303030303030303030303030303f733d343026643d726f626f6861736826723d7067) [![blank](https://camo.githubusercontent.com/a2ec5fe6e70ed12a86980e2abd0c4095af1ec3bfeb37ab5bc283f54bc28c61a8/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f30303030303030303030303030303030303030303030303030303030303030303f733d343026643d626c616e6b26723d7067)](https://camo.githubusercontent.com/a2ec5fe6e70ed12a86980e2abd0c4095af1ec3bfeb37ab5bc283f54bc28c61a8/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f30303030303030303030303030303030303030303030303030303030303030303f733d343026643d626c616e6b26723d7067)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require tomshaw/laravel-gravatar
```

Usage
-----

[](#usage)

Configure the Gravatar Image where you plan on utilizing it.

```

```

> This generates an `60` pixels `retro` style image with a `g` rating.

Parameters
----------

[](#parameters)

The default parameters are described below:

- **`$email` (string)**: The email address of the user. This is required.
- **`$size` (int)**: The size of the Gravatar image in pixels. Default is `60`. Must be between `1` and `2048`.
- **`$default` (string)**: The default image to display if the user doesn't have a Gravatar. Default is `'mp'`. Options include: `'mp'`, `'identicon'`, `'monsterid'`, `'wavatar'`, `'retro'`, `'robohash'`, `'blank'`.
- **`$rating` (string)**: The rating of the Gravatar image. Default is `'g'`. Options include: `'g'`, `'pg'`, `'r'`, `'x'`.
- **`$secure` (bool)**: Whether to use the secure Gravatar URL. Default is `true`.
- **`$forceDefault` (string)**: Whether to always load the default image. Default is `'n'`.
- **`$forceExtension` (string)**: The file extension for the Gravatar image. Default is `'jpg'`.

Requirements
------------

[](#requirements)

The package is compatible with PHP 8 or later.

License
-------

[](#license)

The MIT License (MIT). See [License File](LICENSE) for more information.

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance90

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% of commits — single point of failure

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 ~118 days

Recently: every ~103 days

Total

7

Last Release

56d ago

PHP version history (4 changes)v0.1.0PHP ^8.0

v0.1.1PHP ^8.1|^8.2|^8.3|^8.4

v0.1.2PHP ^8.2|^8.3|^8.4

v0.2.2PHP ^8.2|^8.3|^8.4|^8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/14fd02efdbaf6247b61c9846697c86dabcbf430374aeff0d80e509d95d186658?d=identicon)[Tom Shaw](/maintainers/Tom%20Shaw)

---

Top Contributors

[![tomshaw](https://avatars.githubusercontent.com/u/32818?v=4)](https://github.com/tomshaw "tomshaw (48 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")

---

Tags

laravellivewire

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4205.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

2381.5k10](/packages/marcorieser-statamic-livewire)[georgeboot/laravel-tiptap

Opinionated integration of Tiptap editor using the TALL stack

346.4k](/packages/georgeboot-laravel-tiptap)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

116.6k](/packages/tomshaw-electricgrid)[epessine/axis

Draw charts with a simple API on Laravel

265.6k](/packages/epessine-axis)

PHPackages © 2026

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