{"id":19712088,"url":"https://github.com/laurawebdev/genavatar","last_synced_at":"2025-06-12T05:07:49.113Z","repository":{"id":91125483,"uuid":"119670464","full_name":"LauraWebdev/GenAvatar","owner":"LauraWebdev","description":"GenAvatar is a simple recreation of GitHubs random avatars","archived":false,"fork":false,"pushed_at":"2019-07-23T07:44:10.000Z","size":7,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-02T07:11:58.889Z","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/LauraWebdev.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":"2018-01-31T10:11:12.000Z","updated_at":"2019-07-23T07:19:31.000Z","dependencies_parsed_at":"2023-03-15T14:30:14.680Z","dependency_job_id":null,"html_url":"https://github.com/LauraWebdev/GenAvatar","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/LauraWebdev/GenAvatar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LauraWebdev%2FGenAvatar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LauraWebdev%2FGenAvatar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LauraWebdev%2FGenAvatar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LauraWebdev%2FGenAvatar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LauraWebdev","download_url":"https://codeload.github.com/LauraWebdev/GenAvatar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LauraWebdev%2FGenAvatar/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259402144,"owners_count":22851877,"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-11T22:15:03.093Z","updated_at":"2025-06-12T05:07:49.105Z","avatar_url":"https://github.com/LauraWebdev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GenAvatar\n## A simple recreation of GitHubs random avatars\n### Introduction\n\nThis is a simple PHP library that recreates the random avatars GitHub creates for every user.\nIt uses a seed for the generation and has various settings.\n\n### Pronounciation\n```\n/ˈdʒɛn æv.ə.tɑɹ/\n```\n\n### Usage\n\n```\n// Including the Library\ninclude('class.genAvatar.php');\n\n// Setting a Header\nheader(\"Content-type: image/png\");\n\n// Creating a GenAvatar instance with the seed\n$ga = new GenAvatar('github');\n\n// Output the image content\necho $ga-\u003egenerate(128, \"#ffffff\", \"#ffd001\");\n\n// Output the image content of a smaller pattern\necho $ga-\u003egenerate(128, \"#ffffff\", \"#ffd001\", 16);\n```\n\n### Functions\n\n#### Generate\nGenerates a GenAvatar\n\n```\n$genAvatar-\u003egenerate($outputSize, $backgroundHex, $foregroundHex);\n\n$genAvatar-\u003egenerate($outputSize, $backgroundHex, $foregroundHex, $patternSize);\n```\n\n#### Parameters\n| Parameter       | Type      | Example | Explaination                                           |\n| --------------- | --------- | ------- | ------------------------------------------------------ |\n| size            | integer   | 128     | Output size of the image.                              |\n| backgroundColor | Hex Color | #ffffff | The background color of the GenAvatar                  |\n| foregroundColor | Hex Color | #ffd001 | The foreground color of the GenAvatar                  |\n| patternSize     | integer   | 8       | The pattern size used for the generation. Default is 8 |\n\n### License\nThis project is licensed under the MIT License. To read the license, click [here](LICENSE.md).  \nFor a simple explaination what you can and cannot do, click [here](tldrlegal.com/license/mit-license)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaurawebdev%2Fgenavatar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaurawebdev%2Fgenavatar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaurawebdev%2Fgenavatar/lists"}