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

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

taskforcedev/gravatar
=====================

Gravatar Module.

v1.0.0(10y ago)02351GPL-3.0PHP

Since Dec 6Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (1)

Gravatar
========

[](#gravatar)

A simple [gravatar](https://en.gravatar.com/) class.

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

[](#installation)

### Step 1: Add the following package to your composer.json.

[](#step-1-add-the-following-package-to-your-composerjson)

```
require {
  "taskforcedev/gravatar": "1.0.*",
}

```

### Step 2: Run composer update.

[](#step-2-run-composer-update)

```
composer update

```

Usage
-----

[](#usage)

Using the class is as very straightforward.

Example

```
use Taskforcedev\Gravatar;

$gravatar = new Gravatar();

$avatar = $gravatar->getAvatar($user, $options);

```

$user can be any of the following:

- An array with a key containing the email address.
- A Laravel User object.
- A class with a getEmail() method or email property.

$options is optional

- $options\['secure'\] - By default this is true for https but can also be set to false for http.
- $options\['size'\] - Defaults to 100 (px), accepts any int value.

### Exceptions

[](#exceptions)

If for any reason the class fails to retrieve a gravatar false will be returned.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Unknown

Total

1

Last Release

3816d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/37c8fe9528f3cf904d6cfa282050a60af3dc8c8ef24f1e0d4515a6c9316c2e75?d=identicon)[PrivateSniper](/maintainers/PrivateSniper)

![](https://www.gravatar.com/avatar/67824c3c557abf0cb50a016dabacfc64c2af69b5cd765c2895445f21fb499ae0?d=identicon)[davidcraig](/maintainers/davidcraig)

---

Tags

gravatarphplaravelgravatar

### Embed Badge

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

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

###  Alternatives

[laravolt/avatar

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

2.0k5.4M31](/packages/laravolt-avatar)[forxer/laravel-gravatar

A library providing easy gravatar integration in a Laravel project.

4235.6k](/packages/forxer-laravel-gravatar)[arcanedev/gravatar

A library providing easy gravatar integration/generation (Laravel supported).

1986.8k](/packages/arcanedev-gravatar)[elfsundae/laravel-gravatar

The easiest way to generate Gravatar avatar URL.

388.7k](/packages/elfsundae-laravel-gravatar)

PHPackages © 2026

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