{"id":19036950,"url":"https://github.com/tomshaw/laravel-gravatar","last_synced_at":"2026-02-02T01:17:22.338Z","repository":{"id":230472598,"uuid":"779475926","full_name":"tomshaw/laravel-gravatar","owner":"tomshaw","description":"An easy to use Laravel Gravatar directive. ","archived":false,"fork":false,"pushed_at":"2024-04-11T07:13:54.000Z","size":36,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-14T04:44:29.008Z","etag":null,"topics":[],"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/tomshaw.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-03-29T23:31:12.000Z","updated_at":"2024-03-30T00:29:29.000Z","dependencies_parsed_at":"2024-03-30T00:27:13.287Z","dependency_job_id":"081b20e8-f775-4e8c-8f33-6405ed06f227","html_url":"https://github.com/tomshaw/laravel-gravatar","commit_stats":null,"previous_names":["tomshaw/laravel-gravatar"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomshaw%2Flaravel-gravatar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomshaw%2Flaravel-gravatar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomshaw%2Flaravel-gravatar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomshaw%2Flaravel-gravatar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomshaw","download_url":"https://codeload.github.com/tomshaw/laravel-gravatar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240093186,"owners_count":19746785,"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":[],"created_at":"2024-11-08T21:58:13.518Z","updated_at":"2026-01-16T15:21:56.817Z","avatar_url":"https://github.com/tomshaw.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Gravatar 📸 \n\nA zero config named parameter Laravel Gravatar Directive.\n\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/tomshaw/laravel-gravatar/run-tests.yml?branch=master\u0026style=flat-square\u0026label=tests)\n![issues](https://img.shields.io/github/issues/tomshaw/laravel-gravatar?style=flat\u0026logo=appveyor)\n![forks](https://img.shields.io/github/forks/tomshaw/laravel-gravatar?style=flat\u0026logo=appveyor)\n![stars](https://img.shields.io/github/stars/tomshaw/laravel-gravatar?style=flat\u0026logo=appveyor)\n[![GitHub license](https://img.shields.io/github/license/tomshaw/laravel-gravatar)](https://github.com/tomshaw/laravel-gravatar/blob/master/LICENSE)\n\n\u003cdiv style=\"display: flex; justify-content: flex-start; gap: 0 8px;\"\u003e\n    \u003cimg src=\"https://www.gravatar.com/avatar/00000000000000000000000000000000?s=40\u0026r=pg\" alt=\"blank\" width=\"40\" height=\"40\"\u003e\n    \u003cimg src=\"https://www.gravatar.com/avatar/00000000000000000000000000000000?s=40\u0026d=mp\u0026r=pg\" alt=\"mp\" width=\"40\" height=\"40\"\u003e\n    \u003cimg src=\"https://www.gravatar.com/avatar/00000000000000000000000000000000?s=40\u0026d=identicon\u0026r=pg\" alt=\"identicon\" width=\"40\" height=\"40\"\u003e\n    \u003cimg src=\"https://www.gravatar.com/avatar/00000000000000000000000000000000?s=40\u0026d=monsterid\u0026r=pg\" alt=\"monsterid\" width=\"40\" height=\"40\"\u003e\n    \u003cimg src=\"https://www.gravatar.com/avatar/00000000000000000000000000000000?s=40\u0026d=wavatar\u0026r=pg\" alt=\"wavatar\" width=\"40\" height=\"40\"\u003e\n    \u003cimg src=\"https://www.gravatar.com/avatar/00000000000000000000000000000000?s=40\u0026d=retro\u0026r=pg\" alt=\"retro\" width=\"40\" height=\"40\"\u003e\n    \u003cimg src=\"https://www.gravatar.com/avatar/00000000000000000000000000000000?s=40\u0026d=robohash\u0026r=pg\" alt=\"robohash\" width=\"40\" height=\"40\"\u003e\n    \u003cimg src=\"https://www.gravatar.com/avatar/00000000000000000000000000000000?s=40\u0026d=blank\u0026r=pg\" alt=\"blank\" width=\"40\" height=\"40\"\u003e\n\u003c/div\u003e\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require tomshaw/laravel-gravatar\n```\n\n## Usage\n\nConfigure the Gravatar Image where you plan on utilizing it.\n\n```php\n\u003cimg src=\"@gravatar(email: 'email@example.com', size: 60, default: 'retro', rating: 'g')\" /\u003e\n```\n\n\u003e This generates an `60` pixels `retro` style image with a `g` rating.\n\n## Parameters\n\nThe default parameters are described below:\n\n- **`$email` (string)**: The email address of the user. This is required.\n\n- **`$size` (int)**: The size of the Gravatar image in pixels. Default is `60`. Must be between `1` and `2048`.\n\n- **`$default` (string)**: The default image to display if the user doesn't have a Gravatar. Default is `'mp'`. Options include: `'mp'`, `'identicon'`, `'monsterid'`, `'wavatar'`, `'retro'`, `'robohash'`, `'blank'`.\n\n- **`$rating` (string)**: The rating of the Gravatar image. Default is `'g'`. Options include: `'g'`, `'pg'`, `'r'`, `'x'`.\n\n- **`$secure` (bool)**: Whether to use the secure Gravatar URL. Default is `true`.\n\n- **`$forceDefault` (string)**: Whether to always load the default image. Default is `'n'`.\n\n- **`$forceExtension` (string)**: The file extension for the Gravatar image. Default is `'jpg'`.\n\n## Requirements\n\nThe package is compatible with PHP 8 or later.\n\n## License\n\nThe MIT License (MIT). See [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomshaw%2Flaravel-gravatar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomshaw%2Flaravel-gravatar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomshaw%2Flaravel-gravatar/lists"}