{"id":25663645,"url":"https://github.com/bowphp/gravatar","last_synced_at":"2026-02-05T23:01:26.345Z","repository":{"id":267413044,"uuid":"901167517","full_name":"bowphp/gravatar","owner":"bowphp","description":"A Bow Framework Gravatar package for retrieving gravatar image URLs or checking the existance of an image.","archived":false,"fork":false,"pushed_at":"2024-12-10T07:01:29.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T18:36:07.417Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bowphp.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":"2024-12-10T06:55:15.000Z","updated_at":"2024-12-10T07:01:33.000Z","dependencies_parsed_at":"2024-12-10T08:17:58.968Z","dependency_job_id":"d11ccd91-65f5-4a3b-a1fc-b698e1408466","html_url":"https://github.com/bowphp/gravatar","commit_stats":null,"previous_names":["bowphp/gravatar"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bowphp/gravatar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowphp%2Fgravatar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowphp%2Fgravatar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowphp%2Fgravatar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowphp%2Fgravatar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bowphp","download_url":"https://codeload.github.com/bowphp/gravatar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowphp%2Fgravatar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29137751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T22:49:08.052Z","status":"ssl_error","status_checked_at":"2026-02-05T22:45:32.059Z","response_time":65,"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":[],"created_at":"2025-02-24T05:18:02.364Z","updated_at":"2026-02-05T23:01:26.307Z","avatar_url":"https://github.com/bowphp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gravatar for Bow Framework\n\n[![Total Downloads](https://poser.pugx.org/bowphp/gravatar/d/total.svg)](https://packagist.org/packages/bowphp/gravatar)\n[![Latest Stable Version](https://poser.pugx.org/bowphp/gravatar/v/stable.svg)](https://packagist.org/packages/bowphp/gravatar)\n[![License](https://poser.pugx.org/bowphp/gravatar/license.svg)](https://packagist.org/packages/bowphp/gravatar)\n\n## Installation\n\nFirst, pull in the package through Composer via the command line:\n\n```bash\ncomposer require bowphp/gravatar\n```\n\n## Usage\n\nWithin your controllers or views, you can use\n\n```php\nGravatar::get('email@example.com');\n```\n\nThis will return the URL to the gravatar image of the specified email address.\nIn case of a non-existing gravatar, it will return return a URL to a placeholder image.\nYou can set the type of the placeholder in the configuration option `fallback`.\nFor more information, visit [gravatar.com](http://en.gravatar.com/site/implement/images/#default-image)\n\nAlternatively, you can check for the existence of a gravatar image by using\n\n```php\nGravatar::exists('email@example.com');\n```\n\nThis will return a boolean (`true` or `false`).\n\nOr you can pass a url to a custom image using the fallback method:\n\n```php\nGravatar::fallback('http://urlto.example.com/avatar.jpg')-\u003eget('email@example.com');\n```\n\n## Configuration\n\nYou can create different configuration groups to use within your application and pass the group name as a second parameter to the `get`-method:\n\nThere is a default group in `config/gravatar.php` which will be used when you do not specify a second parameter.\n\nIf you would like to add more groups, feel free to edit the `config/gravatar.php` file. For example:\n\n```php\n\nreturn [\n\t'default' =\u003e [\n\t\t'size'   =\u003e 80,\n\t\t'fallback' =\u003e 'mm',\n\t\t'secure' =\u003e false,\n\t\t'maximumRating' =\u003e 'g',\n\t\t'forceDefault' =\u003e false,\n\t\t'forceExtension' =\u003e 'jpg',\n \t],\n\n 'small-secure' =\u003e [\n    'size'   =\u003e 30,\n    'secure' =\u003e true,\n\t],\n\n\t'medium' =\u003e [\n    'size'   =\u003e 150,\n\t],\n];\n```\n\nthen you can use the following syntax:\n\n```php\nGravatar::get('email@example.com', 'small-secure'); // will use the small-secure group\nGravatar::get('email@example.com', 'medium'); // will use the medium group\nGravatar::get('email@example.com', 'default'); // will use the default group\nGravatar::get('email@example.com'); // will use the default group\n```\n\nAlternatively, you could also pass an array directly as the second parameter as inline options. So, instead of passing a configuration key, you pass an array, which will be merged with the default group:\n\n```php\nGravatar::get('email@example.com', ['size' =\u003e 200]); \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbowphp%2Fgravatar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbowphp%2Fgravatar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbowphp%2Fgravatar/lists"}