{"id":20381282,"url":"https://github.com/drago-ex/gravatar","last_synced_at":"2026-02-13T21:21:54.424Z","repository":{"id":56971822,"uuid":"254052956","full_name":"drago-ex/gravatar","owner":"drago-ex","description":":performing_arts: Simple and customizable Gravatar integration for PHP applications, allowing easy Gravatar image generation based on user email with options for size, default image, and rating.","archived":false,"fork":false,"pushed_at":"2025-01-24T12:13:45.000Z","size":62,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T22:58:00.510Z","etag":null,"topics":["gravatar","nette"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drago-ex.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-08T10:12:02.000Z","updated_at":"2025-01-24T12:13:00.000Z","dependencies_parsed_at":"2024-01-12T12:38:32.756Z","dependency_job_id":"5224b846-b5c7-4f7b-b6e4-02499b188d2f","html_url":"https://github.com/drago-ex/gravatar","commit_stats":{"total_commits":65,"total_committers":1,"mean_commits":65.0,"dds":0.0,"last_synced_commit":"102a03622c626a79c9cbc5daba6d9e176e2a24eb"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/drago-ex/gravatar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fgravatar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fgravatar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fgravatar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fgravatar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drago-ex","download_url":"https://codeload.github.com/drago-ex/gravatar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fgravatar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29417970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gravatar","nette"],"created_at":"2024-11-15T02:12:49.670Z","updated_at":"2026-02-13T21:21:54.419Z","avatar_url":"https://github.com/drago-ex.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Drago Gravatar\nSimple and customizable Gravatar integration for PHP applications.\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://raw.githubusercontent.com/drago-ex/gravatar/master/license)\n[![PHP version](https://badge.fury.io/ph/drago-ex%2Fgravatar.svg)](https://badge.fury.io/ph/drago-ex%2Fgravatar)\n[![Tests](https://github.com/drago-ex/gravatar/actions/workflows/tests.yml/badge.svg)](https://github.com/drago-ex/gravatar/actions/workflows/tests.yml)\n[![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)\n[![CodeFactor](https://www.codefactor.io/repository/github/drago-ex/gravatar/badge)](https://www.codefactor.io/repository/github/drago-ex/gravatar)\n[![Coverage Status](https://coveralls.io/repos/github/drago-ex/gravatar/badge.svg?branch=master)](https://coveralls.io/github/drago-ex/gravatar?branch=master)\n\n## Requirements\n- PHP \u003e= 8.3\n- Nette Framework\n- Composer\n\n## Installation\n```\ncomposer require drago-ex/gravatar\n```\n\n## Overview\nDrago Gravatar is a simple, customizable solution for integrating Gravatar images into your PHP\napplication. With this package, you can easily generate and display Gravatar images based\non user email addresses, allowing you to customize their size, default image, and rating.\n\n## Features\n- Generate Gravatar images based on user email.\n- Customizable image size (from 1 to 2048 pixels).\n- Choose a default image if the user has no Gravatar.\n- Set image rating (g, pg, r, x).\n- Easy integration into your Nette-based application.\n\n## Extension registration\nAfter installation, register the extension in your Nette configuration (`neon` file):\n```neon\nextensions:\n\t- Drago\\User\\DI\\GravatarExtension(size: 80, defaultImage: 'mm', rating: 'g')\n```\nYou can adjust the size, `defaultImage`, and rating parameters based on your needs.\n\n## Usage\nOnce the extension is registered, you can use the Gravatar functionality in your presenters and templates.\n\n## In Presenter\nIn your presenter, you can access the Gravatar service, set the user's email, and pass\nthe generated Gravatar URL to the template:\n```php\n$gravatar = $this-\u003egravatar;\n$gravatar-\u003esetEmail('someone@somewhere.com');\n$this-\u003etemplate-\u003egravatar = $gravatar-\u003egetGravatar();\n```\n\n## In Template\nIn your Latte template, simply output the Gravatar image by using the URL provided by the presenter:\n```latte\n\u003cimg src=\"{$gravatar}\" alt=\"\"\u003e\n```\n\n## Customizing Gravatar\nYou can customize the Gravatar by changing the size, defaultImage, and rating parameters in the configuration:\n\n`size`: The size of the Gravatar image in pixels (1 to 2048). Default is 80.\n`defaultImage`: The default image used when the user doesn't have a Gravatar (e.g., `mm`, `identicon`, `monsterid`, `wavatar`, etc.). Default is `mm`.\n`rating`: The rating of the Gravatar image (`g`, `pg`, `r`, `x`). Default is g.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrago-ex%2Fgravatar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrago-ex%2Fgravatar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrago-ex%2Fgravatar/lists"}