Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/drago-ex/gravatar
- Owner: drago-ex
- License: mit
- Created: 2020-04-08T10:12:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-12T08:39:56.000Z (12 months ago)
- Last Synced: 2024-04-24T03:21:50.391Z (9 months ago)
- Topics: gravatar, nette
- Language: PHP
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
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
```