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

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

potatopowered/gravatar-helper
=============================

A helper that can be used to pull profile pictures from the gravatar service for CakePHP 3.x

v1.2.0(5y ago)21.7k1MITPHPPHP ^5.4.16|^7.2CI failing

Since Feb 23Pushed 5y ago2 watchersCompare

[ Source](https://github.com/PotatoPowered/gravatar-helper)[ Packagist](https://packagist.org/packages/potatopowered/gravatar-helper)[ RSS](/packages/potatopowered-gravatar-helper/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Gravatar Helper
===============

[](#gravatar-helper)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Travis](https://camo.githubusercontent.com/cf293cf377d0d662cc230347c47cfcfd6e83ce872d9e0971b82d627a0d1978d9/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f506f7461746f506f77657265642f67726176617461722d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/PotatoPowered/gravatar-helper)[![Codecov](https://camo.githubusercontent.com/e8db51d52e3e8a3c71d508a57e640da1f7d42004f1b12d838b29207bc3277895/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f506f7461746f506f77657265642f67726176617461722d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/github/PotatoPowered/phone-helper)[![Scrutinizer](https://camo.githubusercontent.com/7701da704bed875d6b9b8c3a56bc16517b35e1360f335415b8a0adbc487a2188/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f506f7461746f506f77657265642f67726176617461722d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/PotatoPowered/phone-helper/)[![Packagist](https://camo.githubusercontent.com/115041e4e0e37c5201cb28b77a06d1d218b883b56a80494fe17847daf2feb70c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706f7461746f706f77657265642f67726176617461722d68656c7065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/potatopowered/gravatar-helper)

A helper that can be used to pull profile pictures from the gravatar service for CakePHP 3.x

Description
-----------

[](#description)

The gravatar helper aims to make it easy to pull user avatars from the gravatar service rather than having to rebuilt the basic connection and link generation for the API every time you want to use it. There are many customizations that can be set including defaults and the avatar size returned.

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

[](#installation)

```
composer require potatopowered/gravatar-helper

```

Add the helper to the public helpers variable of the controller you need it on or in the AppController to have it accessible in all controllers.

```
public $helpers = [
    'Gravatar' => [
        'className' => 'GravatarHelper.Gravatar'
    ]
];

```

Usage
-----

[](#usage)

To use the gravatar helper you simply call the avatar function of the Gravatar helper with the user email as the argument. There are also several options you can set to change defaults like size.

```
// the avatar of the user with an email of $email
$this->Gravatar->avatar($email, ['size' => 40]);

```

Options for Avatar
------------------

[](#options-for-avatar)

- size: The width and height of the profile (150 default)
- default: The default gravatar image (mm default) [List Here](http://en.gravatar.com/site/implement/images/)
- class: The css class of the image tag (gravatar default)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~861 days

Total

3

Last Release

2058d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.4.16

v1.2.0PHP ^5.4.16|^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed148c9a48c42d2cd8d439c091444df47be2ad744bab37376d4b17da07ef668c?d=identicon)[potatopowered](/maintainers/potatopowered)

![](https://avatars.githubusercontent.com/u/1271668?v=4)[Blake Sutton](/maintainers/KaffineAddict)[@kaffineaddict](https://github.com/kaffineaddict)

---

Top Contributors

[![kaffineaddict](https://avatars.githubusercontent.com/u/1271668?v=4)](https://github.com/kaffineaddict "kaffineaddict (10 commits)")[![jeffersongoncalves](https://avatars.githubusercontent.com/u/411493?v=4)](https://github.com/jeffersongoncalves "jeffersongoncalves (2 commits)")

---

Tags

cakephpcakephp-plugingravatarhelpercakephpgravataravatar

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravolt/avatar

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

2.0k5.6M38](/packages/laravolt-avatar)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

333972.2k49](/packages/dereuromark-cakephp-tools)[dereuromark/cakephp-calendar

A CakePHP plugin to easily create calendars.

1674.7k1](/packages/dereuromark-cakephp-calendar)[drmonkeyninja/cakephp-social-share

CakePHP helper for creating social share/bookmark links

31103.5k](/packages/drmonkeyninja-cakephp-social-share)[dereuromark/cakephp-dto

A CakePHP plugin for generating immutable Data Transfer Objects with full type safety

3096.0k5](/packages/dereuromark-cakephp-dto)[dereuromark/cakephp-setup

A CakePHP plugin containing lots of useful management tools

35184.7k2](/packages/dereuromark-cakephp-setup)

PHPackages © 2026

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