https://github.com/baraja-core/gravatar
Simple PHP API provider for getting user Gravatar and user description.
https://github.com/baraja-core/gravatar
api avatar gravatar provider wordpress
Last synced: 5 months ago
JSON representation
Simple PHP API provider for getting user Gravatar and user description.
- Host: GitHub
- URL: https://github.com/baraja-core/gravatar
- Owner: baraja-core
- License: mit
- Created: 2021-08-05T15:25:08.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-08T13:37:09.000Z (about 3 years ago)
- Last Synced: 2025-03-05T09:46:21.679Z (7 months ago)
- Topics: api, avatar, gravatar, provider, wordpress
- Language: PHP
- Homepage: https://php.baraja.cz
- Size: 30.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/funding.yml
- License: LICENSE
Awesome Lists containing this project
README
Gravatar API
============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:
```php
$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');
```