baraja-core / gravatar
Simple PHP API provider for getting user Gravatar and user description.
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/baraja-core/gravatar
Requires
- php: ^8.0
- baraja-core/email-type: ^1.0
- nette/utils: ^3.0
Requires (Dev)
- nette/caching: ^3.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.0
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-nette: ^1.0
- phpstan/phpstan-strict-rules: ^1.0
- roave/security-advisories: dev-master
- spaze/phpstan-disallowed-calls: ^2.0
This package is auto-updated.
Last update: 2025-10-08 20:40:46 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');