{"id":28222178,"url":"https://github.com/gigadrive/minecraft-avatar-urls","last_synced_at":"2025-06-11T16:31:55.218Z","repository":{"id":62510822,"uuid":"405683138","full_name":"Gigadrive/minecraft-avatar-urls","owner":"Gigadrive","description":"Easily generate URLs to Minecraft avatars with the ability to switch between services","archived":false,"fork":false,"pushed_at":"2021-09-12T17:57:18.000Z","size":22,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-18T06:11:16.521Z","etag":null,"topics":["avatar","crafatar","crafthead","generator","image","library","minecraft","minotar","php","url"],"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/Gigadrive.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}},"created_at":"2021-09-12T15:46:34.000Z","updated_at":"2022-08-11T09:20:40.000Z","dependencies_parsed_at":"2022-11-02T10:30:49.630Z","dependency_job_id":null,"html_url":"https://github.com/Gigadrive/minecraft-avatar-urls","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Gigadrive/minecraft-avatar-urls","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gigadrive%2Fminecraft-avatar-urls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gigadrive%2Fminecraft-avatar-urls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gigadrive%2Fminecraft-avatar-urls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gigadrive%2Fminecraft-avatar-urls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gigadrive","download_url":"https://codeload.github.com/Gigadrive/minecraft-avatar-urls/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gigadrive%2Fminecraft-avatar-urls/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259297724,"owners_count":22836434,"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":["avatar","crafatar","crafthead","generator","image","library","minecraft","minotar","php","url"],"created_at":"2025-05-18T06:10:15.768Z","updated_at":"2025-06-11T16:31:55.213Z","avatar_url":"https://github.com/Gigadrive.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minecraft Avatar URLs\n\nThis library provides PHP utilities to generate URLs to Minecraft Avatars in different formats with the ability to easily change between avatar services.\n\n## Requirements\n\n* PHP 7.1 or higher\n* Composer\n\n## Installation\n\n```\ncomposer require gigadrive/minecraft-avatar-urls\n```\n\n## Usage\n\n```php\nuse Gigadrive\\MinecraftAvatar\\MinecraftAvatar;\n\n// Set default service to use\nMinecraftAvatar::setDefaultService(MinecraftAvatar::SERVICE_MINOTAR); // minotar.net\nMinecraftAvatar::setDefaultService(MinecraftAvatar::SERVICE_CRAFATAR); // crafatar.com\nMinecraftAvatar::setDefaultService(MinecraftAvatar::SERVICE_CRAFTHEAD); // crafthead.net\nMinecraftAvatar::setDefaultService(MinecraftAvatar::SERVICE_MCHEADS); // mc-heads.net\nMinecraftAvatar::setDefaultService(MinecraftAvatar::SERVICE_CRAVATAR); // cravatar.eu\n\n// Retrieve the default service class\n$service = MinecraftAvatar::getDefaultService();\n\n// Retrieve the default service class through global function\n$service = avatar();\n\n// Manually retrieve a service class\n$service = MinecraftAvatar::getServices()[MinecraftAvatar::SERVICE_MINOTAR]; // minotar.net\n$service = MinecraftAvatar::getServices()[MinecraftAvatar::SERVICE_CRAFATAR]; // crafatar.com\n$service = MinecraftAvatar::getServices()[MinecraftAvatar::SERVICE_CRAFTHEAD]; // crafthead.net\n$service = MinecraftAvatar::getServices()[MinecraftAvatar::SERVICE_MCHEADS]; // mc-heads.net\n$service = MinecraftAvatar::getServices()[MinecraftAvatar::SERVICE_CRAVATAR]; // cravatar.eu\n\n// Use service class\n// Not all formats are available on all classes, check their websites for documentation\n// Functions include phpDoc blocks.\n$service-\u003eface(\"73b417dcd1e645d8af06895eeb5222a5\", 16, true); // Returns a URL 16x16 face image of a player including the helm layer\n```\n\n## Copyright and License\n\nThis program was developed by [Mehdi Baaboura](https://github.com/Zeryther) and published by [Gigadrive UG](https://gigadrivegroup.com) under the MIT License. For more information click [here](https://github.com/Gigadrive/minecraft-avatar-urls/blob/master/LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgigadrive%2Fminecraft-avatar-urls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgigadrive%2Fminecraft-avatar-urls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgigadrive%2Fminecraft-avatar-urls/lists"}