baraja-core/gravatar

There is no license information available for the latest version (v1.0.2) of this package.

Simple PHP API provider for getting user Gravatar and user description.

v1.0.2 2022-03-22 09:31 UTC

This package is auto-updated.

Last update: 2024-12-08 18:45:19 UTC


README

The goal of this package is to provide a simple object-oriented interface for working with Gravatar.

Simply call the method with the user's email and get back an object that describes all the data we can get about the user.

It is relatively easy to use:

$gravatar = new Gravatar;

// Get icon URL - default icon size
$gravatar->getIcon('jan@barasek.com');

// small icon size
$gravatar->getIcon('jan@barasek.com', 32);

// big icon size
$gravatar->getIcon('jan@barasek.com', 255);

// Get user full info as GravatarResponse
$gravatar->getUserInfo('jan@barasek.com');