PHPackages                             maxvoronov/avatarix - 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. maxvoronov/avatarix

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

maxvoronov/avatarix
===================

Avatars generating library

0.1.0(7y ago)119MITPHPPHP ^7.0

Since Aug 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/MaxVoronov/avatarix)[ Packagist](https://packagist.org/packages/maxvoronov/avatarix)[ RSS](/packages/maxvoronov-avatarix/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (2)Used By (0)

Avatarix
========

[](#avatarix)

Install
-------

[](#install)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/):

```
composer require maxvoronov/avatarix

```

Usage
-----

[](#usage)

Library can generate 8-bits avatar by any string. This package use [Imagine](http://imagine.readthedocs.io/) for processing.

```
use MaxVoronov\Avatarix;
use MaxVoronov\Avatarix\SpriteCollection;

$avatarix = new Avatarix;
$avatarix->setPayload('username');       // You can use here user ID or email

$avatarix                                // Set collections of avatar parts
    ->appendCollection(SpriteCollection::init(__DIR__ . '/assets/bg/'))
    ->appendCollection(SpriteCollection::init(__DIR__ . '/assets/faces/'))
    ->appendCollection(SpriteCollection::init(__DIR__ . '/assets/clothes/'))
    ->appendCollection(SpriteCollection::init(__DIR__ . '/assets/mouths/'))
    ->appendCollection(SpriteCollection::init(__DIR__ . '/assets/eyes/'))
    ->appendCollection(SpriteCollection::init(__DIR__ . '/assets/hairs/'));

$userAvatar = $avatarix->render();
$userAvatar->save('/path/to/avatar.png');       // Save generated avatar into file
$userAvatar->show('png');                       // ... and output with image headers
```

You can also look at [an example](examples).

Special Thanks
--------------

[](#special-thanks)

Special thanks to @matveyco and his [8biticon Project](https://github.com/matveyco/8biticon/) for avatar sprites.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

2887d ago

### Community

Maintainers

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

---

Top Contributors

[![maxvoronov](https://avatars.githubusercontent.com/u/8292606?v=4)](https://github.com/maxvoronov "maxvoronov (2 commits)")

---

Tags

generatoravatarsotusavatarix

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/maxvoronov-avatarix/health.svg)

```
[![Health](https://phpackages.com/badges/maxvoronov-avatarix/health.svg)](https://phpackages.com/packages/maxvoronov-avatarix)
```

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k116.2M677](/packages/symfony-maker-bundle)[simplesoftwareio/simple-qrcode

Simple QrCode is a QR code generator made for Laravel.

2.9k29.5M106](/packages/simplesoftwareio-simple-qrcode)[nikic/iter

Iteration primitives using generators

1.1k6.2M51](/packages/nikic-iter)[lambdish/phunctional

λ PHP functional library

3632.1M24](/packages/lambdish-phunctional)[riimu/kit-phpencoder

Highly customizable alternative to var\_export for PHP code generation

718.1M35](/packages/riimu-kit-phpencoder)[butschster/cron-expression-generator

Cron expression generator

511.7M2](/packages/butschster-cron-expression-generator)

PHPackages © 2026

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