Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/drago-ex/gravatar

:performing_arts: Simple Gravatar. (@nette)
https://github.com/drago-ex/gravatar

gravatar nette

Last synced: about 2 months ago
JSON representation

:performing_arts: Simple Gravatar. (@nette)

Awesome Lists containing this project

README

        

## Drago Gravatar
Simple Gravatar.

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://raw.githubusercontent.com/drago-ex/gravatar/master/license.md)
[![PHP version](https://badge.fury.io/ph/drago-ex%2Fgravatar.svg)](https://badge.fury.io/ph/drago-ex%2Fgravatar)
[![Tests](https://github.com/drago-ex/gravatar/actions/workflows/tests.yml/badge.svg)](https://github.com/drago-ex/gravatar/actions/workflows/tests.yml)
[![Coding Style](https://github.com/drago-ex/gravatar/actions/workflows/coding-style.yml/badge.svg)](https://github.com/drago-ex/gravatar/actions/workflows/coding-style.yml)
[![CodeFactor](https://www.codefactor.io/repository/github/drago-ex/gravatar/badge)](https://www.codefactor.io/repository/github/drago-ex/gravatar)
[![Coverage Status](https://coveralls.io/repos/github/drago-ex/gravatar/badge.svg?branch=master)](https://coveralls.io/github/drago-ex/gravatar?branch=master)

## Technology
- PHP 8.1 or higher
- composer

## Installation
```
composer require drago-ex/gravatar
```

## Extension registration
```neon
extensions:
- Drago\User\DI\GravatarExtension(size: 80, defaultImage: 'mm', rating: 'g')
```

## Use
```php
$gravatar = $this->gravatar;
$gravatar->setEmail('[email protected]');
$this->template->gravatar = $gravatar->getGravatar();
```

## Template
```latte

```