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

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

euantor/simple-gravatar
=======================

A simple class to automagically generate a Gravatar given an email address.

1.0.2(12y ago)185873MITPHPPHP &gt;=5.3.0

Since Mar 1Pushed 12y ago3 watchersCompare

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

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

\#SimpleGravatar

[![Build Status](https://camo.githubusercontent.com/61d6558eced7c101061c8c72f98254c93d1bf9bc6c38b1055ae5bb67d3796a0b/68747470733a2f2f7472617669732d63692e6f72672f6575616e746f72616e6f2f53696d706c6547726176617461722e706e67)](https://travis-ci.org/euantorano/SimpleGravatar)

A super simple class to generate Gravatar images based on email addresses. Built to work with Laravel 4.

\##Usage Example

Add the Service Provider to your app/config/app.php file:

```
/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers
|--------------------------------------------------------------------------
|
| The service providers listed here will be automatically loaded on the
| request to your application. Feel free to add your own services to
| this array to grant expanded functionality to your applications.
|
*/

'providers' => array(
	...
	'Euantor\SimpleGravatar\SimpleGravatarServiceProvider',
),

```

Use the Gravatar class within your app:

```
$gravatar = App::make('simplegravatar');
$gravatarUrl = $gravatar->getGravatar('email@domain.com');

```

You can optionally change the options too using a variety of methods to set the size for the gravatar, the default image to be used if the gravatar doesn't exist, whether to use a secure (HTTPS) connection and more:

```
$gravatarUrl = $gravatar->setSecure(true)->setExtension('jpg')->setSize(32)->setDefault('identicon')->getGravatar('email@domain.com');

```

Preferences are stored as attributes of the $gravatar object so once you set the attributes once, you don't need to do so again - meaning subsequently you only need call

```
$gravatar->getGravatar('newEmail@domain.com');

```

\###Alternative usage

There is also a GravatarFacade class shipped with the package allowing you to easily use the Gravatar facade once it has been added to your app/config/app.php file.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~13 days

Total

2

Last Release

4447d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2957bf948ef8d8b4542d93dc43b640eae1187e733e423483ab857b510a72590b?d=identicon)[euantorano](/maintainers/euantorano)

---

Top Contributors

[![euantorano](https://avatars.githubusercontent.com/u/748913?v=4)](https://github.com/euantorano "euantorano (16 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9346.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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