{"id":14984064,"url":"https://github.com/pyrrah/gravatarbundle","last_synced_at":"2025-04-10T19:43:25.119Z","repository":{"id":45238445,"uuid":"206336097","full_name":"Pyrrah/GravatarBundle","owner":"Pyrrah","description":"Pyrrah Gravatar Bundle for Symfony 4.4 to 7","archived":false,"fork":false,"pushed_at":"2025-01-27T17:46:42.000Z","size":62,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T23:57:27.720Z","etag":null,"topics":["php","symfony-bundle","symfony4","symfony5","symfony6","symfony7"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/pyrrah/gravatar-bundle","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/Pyrrah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-09-04T14:16:16.000Z","updated_at":"2025-01-27T17:25:38.000Z","dependencies_parsed_at":"2025-02-17T21:32:58.672Z","dependency_job_id":"42f8d5fa-228b-4547-9ce1-a882d9e44121","html_url":"https://github.com/Pyrrah/GravatarBundle","commit_stats":{"total_commits":87,"total_committers":3,"mean_commits":29.0,"dds":0.03448275862068961,"last_synced_commit":"9e3df63729f0415efd740cf87ec4e6afe42aab9a"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pyrrah%2FGravatarBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pyrrah%2FGravatarBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pyrrah%2FGravatarBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pyrrah%2FGravatarBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pyrrah","download_url":"https://codeload.github.com/Pyrrah/GravatarBundle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281424,"owners_count":21077423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["php","symfony-bundle","symfony4","symfony5","symfony6","symfony7"],"created_at":"2024-09-24T14:08:23.689Z","updated_at":"2025-04-10T19:43:25.092Z","avatar_url":"https://github.com/Pyrrah.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Pyrrah/GravatarBundle 🤳\n========================\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE)\n[![Total Contributors][ico-contributors]][link-contributors]\n[![Total Downloads][ico-downloads]][link-downloads]\n\nThis bundle allows you to display your avatar anywhere on your site, via the Gravatar service.\n\nRequirements\n------------\n\n* Symfony 4.4 to 7\n* PHP 7.1.3 or higher\n* A [Gravatar account][link-gravatar-signup] - it's free!\n\nInstallation\n------------\n\n  1. To install this bundle, run the following [Composer](https://getcomposer.org/) command :\n\n  ```\n  composer require pyrrah/gravatar-bundle\n  ```\n\n  2. If you always have some default for your gravatars such as size, rating or default it can be configured in your config :\n\n  ```yaml\n  # config/packages/pyrrah_gravatar.yaml\n  pyrrah_gravatar:\n    rating: \"g\"\n    size: 80\n    default: \"mp\"\n  ```\n\nUsage\n-----\n\nAll you have to do is use the helper like this example:\n\n```html\n\u003cimg src=\"\u003c?php echo $view['gravatar']-\u003egetUrl('alias@domain.tld') ?\u003e\" /\u003e\n```\n\nOr with parameters:\n\n```html\n\u003cimg src=\"\u003c?php echo $view['gravatar']-\u003egetUrl('alias@domain.tld', '80', 'g', 'defaultimage.png') ?\u003e\" /\u003e\n```\n\nThe only required parameter is the email adress. The rest have default values.\n\nIf you use twig you can use the helper like this example:\n\n```\n\u003cimg src=\"{{ gravatar('alias@domain.tld') }}\" /\u003e\n```\n\nOr if you want to check if a gravatar email exists:\n\n```\n{% if gravatar_exists('alias@domain.tld') %}\n  The email is an gravatar email\n{% endif %}\n```\n\nOr with parameters:\n\n```\n\u003cimg src=\"{{ gravatar('alias@domain.tld', size, rating, default) }}\" /\u003e\n```\n\nFor more information [look at the gravatar implementation pages][link-gravatar-implement].\n\nCredits\n-------\n\n- [Pierre-Yves Dick][link-author]\n- [All Contributors][link-contributors]\n\nLicense\n-------\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/pyrrah/gravatar-bundle.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-contributors]: https://img.shields.io/github/contributors/Pyrrah/GravatarBundle?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/pyrrah/gravatar-bundle.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/pyrrah/gravatar-bundle\n[link-downloads]: https://packagist.org/packages/pyrrah/gravatar-bundle\n[link-author]: https://github.com/Pyrrah\n[link-contributors]: ../../contributors\n[link-gravatar-signup]: https://www.gravatar.com/site/signup\n[link-gravatar-implement]: https://docs.gravatar.com/gravatar-images/php/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyrrah%2Fgravatarbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyrrah%2Fgravatarbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyrrah%2Fgravatarbundle/lists"}