PHPackages                             duaton/png-avatar - 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. duaton/png-avatar

ActiveLibrary

duaton/png-avatar
=================

Simple avatars by pixels

v1.0.1(4y ago)04MITPHPPHP &gt;=7.3.0

Since Sep 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Duaton/png-avatar)[ Packagist](https://packagist.org/packages/duaton/png-avatar)[ Docs](https://github.com/Duaton/png-avatar)[ RSS](/packages/duaton-png-avatar/feed)WikiDiscussions 1.x.x Synced 1mo ago

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

Png avatar
==========

[](#png-avatar)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Install
-------

[](#install)

Via Composer

```
$ composer require duaton/png-avatar
```

Usage
-----

[](#usage)

Case 1:

```
$avatar = new Avatar();

$faces = new \duaton\paint\Base\Faces();
$ears = new \duaton\paint\Base\Ears();
$eyes = new \duaton\paint\Base\Eyes();
$mouths = new \duaton\paint\Base\Mouths();
$noses = new \duaton\paint\Base\Noses();

$avatarPaint->face($faces->default())
        ->ears($ears->default())
        ->eyes($eyes->default())
        ->mouth($mouths->default())
        ->nose($noses->default())
        ->save('full path to directory/fileName.png');
```

Case 2:

```
$faces = new \duaton\paint\Base\Faces();
$ears = new \duaton\paint\Base\Ears();
$eyes = new \duaton\paint\Base\Eyes();
$mouths = new \duaton\paint\Base\Mouths();
$noses = new \duaton\paint\Base\Noses();

$avatar = new Avatar([
        'face' => $faces->default(),
        'hair' => '',
        'ears' => $ears->default(),
        'eyes' => $eyes->default(),
        'mouth' => $mouths->default(),
        'beard' => '',
        'nose' => $noses->default(),
]);

$avatar->save('full path to directory/fileName.png');
```

License
-------

[](#license)

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

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

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 ~0 days

Total

3

Last Release

1696d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef3228be30d8359d0b28f7285723f4e31650232c7421278bbf8a77937dfeafdb?d=identicon)[Duaton](/maintainers/Duaton)

---

Tags

duatonpaint\_by\_numbers

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/duaton-png-avatar/health.svg)

```
[![Health](https://phpackages.com/badges/duaton-png-avatar/health.svg)](https://phpackages.com/packages/duaton-png-avatar)
```

PHPackages © 2026

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