https://github.com/jruedaq/gravatar-url
Get Gravatar image URL and put by default an image with username initials. You can test this library here https://gravatar-url.herokuapp.com/examples/LibraryUse.php
https://github.com/jruedaq/gravatar-url
default gravatar image letters url username
Last synced: about 1 year ago
JSON representation
Get Gravatar image URL and put by default an image with username initials. You can test this library here https://gravatar-url.herokuapp.com/examples/LibraryUse.php
- Host: GitHub
- URL: https://github.com/jruedaq/gravatar-url
- Owner: jruedaq
- License: mit
- Created: 2020-09-25T06:58:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-05T01:27:46.000Z (about 5 years ago)
- Last Synced: 2024-05-01T19:27:45.172Z (about 2 years ago)
- Topics: default, gravatar, image, letters, url, username
- Language: PHP
- Homepage: https://gravatar-url.herokuapp.com/examples/LibraryUse.php
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README






# GravatarUrl
This is a method for the get gravatar image most easily and, this library have a
feature, if in gravatar no exists an image for user email returns default image with
username initials.
You can test example in this link (https://gravatar-url.herokuapp.com/examples/LibraryUse.php).
## Preview

## Installation
```shell script
$ composer require jruedaq/gravatar-url
```
## Basic use
In your php file call `autoload.php`
```php
require 'vendor/autoload.php';
```
getting a url image
```php
$imageUrl = GetGravatar::getUrl(SessionData::get()->getFirstName(), SessionData::get()->getEmail(), 230);
```
Complete example
```php
```