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
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: 2024-10-08 18:17:38 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');