PHPackages                             gigadrive/minecraft-avatar-urls - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. gigadrive/minecraft-avatar-urls

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

gigadrive/minecraft-avatar-urls
===============================

Easily generate URLs to Minecraft avatars with the ability to switch between services

1.0.0(4y ago)36[2 issues](https://github.com/Gigadrive/minecraft-avatar-urls/issues)MITPHPPHP ^7.1 || ^8.0

Since Sep 12Pushed 4y ago2 watchersCompare

[ Source](https://github.com/Gigadrive/minecraft-avatar-urls)[ Packagist](https://packagist.org/packages/gigadrive/minecraft-avatar-urls)[ Docs](https://github.com/Gigadrive/minecraft-avatar-urls)[ RSS](/packages/gigadrive-minecraft-avatar-urls/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Minecraft Avatar URLs
=====================

[](#minecraft-avatar-urls)

This library provides PHP utilities to generate URLs to Minecraft Avatars in different formats with the ability to easily change between avatar services.

Requirements
------------

[](#requirements)

- PHP 7.1 or higher
- Composer

Installation
------------

[](#installation)

```
composer require gigadrive/minecraft-avatar-urls

```

Usage
-----

[](#usage)

```
use Gigadrive\MinecraftAvatar\MinecraftAvatar;

// Set default service to use
MinecraftAvatar::setDefaultService(MinecraftAvatar::SERVICE_MINOTAR); // minotar.net
MinecraftAvatar::setDefaultService(MinecraftAvatar::SERVICE_CRAFATAR); // crafatar.com
MinecraftAvatar::setDefaultService(MinecraftAvatar::SERVICE_CRAFTHEAD); // crafthead.net
MinecraftAvatar::setDefaultService(MinecraftAvatar::SERVICE_MCHEADS); // mc-heads.net
MinecraftAvatar::setDefaultService(MinecraftAvatar::SERVICE_CRAVATAR); // cravatar.eu

// Retrieve the default service class
$service = MinecraftAvatar::getDefaultService();

// Retrieve the default service class through global function
$service = avatar();

// Manually retrieve a service class
$service = MinecraftAvatar::getServices()[MinecraftAvatar::SERVICE_MINOTAR]; // minotar.net
$service = MinecraftAvatar::getServices()[MinecraftAvatar::SERVICE_CRAFATAR]; // crafatar.com
$service = MinecraftAvatar::getServices()[MinecraftAvatar::SERVICE_CRAFTHEAD]; // crafthead.net
$service = MinecraftAvatar::getServices()[MinecraftAvatar::SERVICE_MCHEADS]; // mc-heads.net
$service = MinecraftAvatar::getServices()[MinecraftAvatar::SERVICE_CRAVATAR]; // cravatar.eu

// Use service class
// Not all formats are available on all classes, check their websites for documentation
// Functions include phpDoc blocks.
$service->face("73b417dcd1e645d8af06895eeb5222a5", 16, true); // Returns a URL 16x16 face image of a player including the helm layer
```

Copyright and License
---------------------

[](#copyright-and-license)

This 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).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1702d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23582935?v=4)[Gigadrive UG](/maintainers/Gigadrive)[@Gigadrive](https://github.com/Gigadrive)

![](https://avatars.githubusercontent.com/u/5731334?v=4)[Zeryther](/maintainers/Zeryther)[@Zeryther](https://github.com/Zeryther)

---

Top Contributors

[![Zeryther](https://avatars.githubusercontent.com/u/5731334?v=4)](https://github.com/Zeryther "Zeryther (8 commits)")

---

Tags

avatarcrafatarcraftheadgeneratorimagelibraryminecraftminotarphpurlurlphputilitylibrarygeneratorextensionavatarminecraftminotarGigadrivecrafatarcrafthead

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gigadrive-minecraft-avatar-urls/health.svg)

```
[![Health](https://phpackages.com/badges/gigadrive-minecraft-avatar-urls/health.svg)](https://phpackages.com/packages/gigadrive-minecraft-avatar-urls)
```

###  Alternatives

[lambdish/phunctional

λ PHP functional library

3612.0M23](/packages/lambdish-phunctional)[akamon/phunctional

λ PHP functional library

3609.4k](/packages/akamon-phunctional)[memio/spec-gen

phpspec extension for better code generation

66204.3k28](/packages/memio-spec-gen)[tomloprod/radiance

A deterministic mesh gradient avatar generator for PHP.

1393.7k](/packages/tomloprod-radiance)[kisma/kisma

PHP Utility Belt

178.5k8](/packages/kisma-kisma)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
