PHPackages                             blessing/texture-renderer - 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. blessing/texture-renderer

ActiveLibrary

blessing/texture-renderer
=========================

Minecraft texture renderer.

0.2.1(4y ago)33.7k↓52.4%1MITPHP

Since Jan 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/bs-community/texture-renderer)[ Packagist](https://packagist.org/packages/blessing/texture-renderer)[ RSS](/packages/blessing-texture-renderer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (1)

texture-renderer
================

[](#texture-renderer)

Minecraft texture renderer written in pure PHP.

Install
-------

[](#install)

```
composer require blessing/texture-renderer

```

Usage
-----

[](#usage)

At all the code examples below, we assume you've prepared your texture source as the variable `$source`. The source can be a file path, a URL, or a string represents texture binary.

### High Level API

[](#high-level-api)

All the high level APIs will return a GD resource.

```
use Blessing\Minecraft;

$m = new Minecraft();
$resource = $m->renderSkin($source, /* optional */ $ratio, /* optional */ $isAlex);
$resource = $m->renderCape($source, $height);
$resource = $m->render2dAvatar($source, /* optional */ $ratio);
$resource = $m->render3dAvatar($source, /* optional */ $ratio);
```

### Low Level API

[](#low-level-api)

This library contains two renderers: skin renderer and cape renderer.

#### Skin Renderer

[](#skin-renderer)

The constructor of the skin renderer can accept many parameters (all are optional). For example, you can specify `$ratio`, `$headOnly`, `$horizontalRotation`, `$verticalRotation`. For details, please check out the source code.

```
use Blessing\Renderer\SkinRenderer;

$renderer = new SkinRenderer();
$resource = $renderer->render($source, $isAlex);  // returns GD resource
```

As you can see above, the second parameter of the `render` method will tell the renderer whether your texture is of Alex model or not. Default value is `false`.

#### Cape Renderer

[](#cape-renderer)

Two arguments below are necessary.

The `$height` stands for the height of rendered image.

```
use Blessing\Renderer\CapeRenderer;

$renderer = new CapeRenderer();
$resource = $renderer->render($source, $height);  // returns GD resource
```

### Utility Functions

[](#utility-functions)

#### `isAlex`

[](#isalex)

This utility can be used to detect if a texture is an alex texture.

```
use Blessing\Renderer\TextureUtil;

$isAlex = TextureUtil::isAlex($texture); // returns bool type
```

License
-------

[](#license)

MIT License

2020-present (c) The Blessing Skin Team

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

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

Every ~194 days

Total

4

Last Release

1728d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/91d034d624b0462568734c0dbba99eab43e23b5b1ed5009d5a24bbd4bdc7f8c1?d=identicon)[gplane](/maintainers/gplane)

![](https://www.gravatar.com/avatar/943d05ca6b368c3689810455068edf966efe57a4a3dea8a7cf335a2575110f83?d=identicon)[Asnxthaony](/maintainers/Asnxthaony)

---

Top Contributors

[![g-plane](https://avatars.githubusercontent.com/u/17216317?v=4)](https://github.com/g-plane "g-plane (9 commits)")

### Embed Badge

![Health badge](/badges/blessing-texture-renderer/health.svg)

```
[![Health](https://phpackages.com/badges/blessing-texture-renderer/health.svg)](https://phpackages.com/packages/blessing-texture-renderer)
```

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[laravolt/avatar

Turn name, email, and any other string into initial-based avatar or gravatar.

2.0k5.4M31](/packages/laravolt-avatar)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.3M73](/packages/unisharp-laravel-filemanager)[aimeos/aimeos-core

Full-featured e-commerce components for high performance online shops

4.5k346.9k46](/packages/aimeos-aimeos-core)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M100](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k22](/packages/bkwld-croppa)

PHPackages © 2026

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