PHPackages                             darwin-8/avataaar - 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. darwin-8/avataaar

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

darwin-8/avataaar
=================

php package for getavataaars

1.0.0(6y ago)01.8k↓50%1MITPHPPHP &gt;=5.4.0CI failing

Since Sep 30Pushed 6y ago1 watchersCompare

[ Source](https://github.com/darwin-8/avataaar)[ Packagist](https://packagist.org/packages/darwin-8/avataaar)[ RSS](/packages/darwin-8-avataaar/feed)WikiDiscussions master Synced 1mo ago

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

PHP Avataaars
=============

[](#php-avataaars)

Uses [getavataaars](https://getavataaars.com/) service and provides interface for work with **avataaars.io** api.

This package allows you :

- Generate random styles.
- Generate styles with selected options.
- Generate styles for gender.

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

[](#installation)

#### Dependencies:

[](#dependencies)

- [PHP 5.4](https://www.php.net/releases/5_4_0.php)

#### Installation:

[](#installation-1)

**-** Require the package via Composer

```
composer require darwin-8/avataaar
```

Usage
-----

[](#usage)

Just make Avataaar instance and asc *get()* method to get random img (string)

```
$avataaar = new \Avataaar\Avataaar(['host' => 'https://avataadfars.io']);

$avataaar->get();
```

You can use *only()* and *except()* methods to set styles you want, or don`t want to see in img. Dont forget use get() method then!

```
$avataaar = new \Avataaar\Avataaar(['host' => 'https://avataadfars.io']);

$avataaar->only(['topType' => ["ShortHairDreads01", "ShortHairDreads02", "ShortHairFrizzle"]])
         ->except(['topType' => ["ShortHairDreads02"]])
         ->get();
```

For addition you can use *girl()* and *guy()* methods to set styles for girl or boy. Dont forget use get() method then!

```
$avataaar = new \Avataaar\Avataaar(['host' => 'https://avataadfars.io']);

$avataaar->girl()->only(['skinColor' => ['Brown']])->get();
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

2423d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e662cf4f67b49ff6b937f772b2abb301fec0234e400f08384a1703a65899669e?d=identicon)[darwin-8](/maintainers/darwin-8)

---

Top Contributors

[![darwin-8](https://avatars.githubusercontent.com/u/55874103?v=4)](https://github.com/darwin-8 "darwin-8 (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/darwin-8-avataaar/health.svg)

```
[![Health](https://phpackages.com/badges/darwin-8-avataaar/health.svg)](https://phpackages.com/packages/darwin-8-avataaar)
```

###  Alternatives

[lvzhao1995/amap-sdk

高德地图SDK

1211.7k](/packages/lvzhao1995-amap-sdk)

PHPackages © 2026

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