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

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

darwin-8/lavataaar
==================

laravel package for getavataaars

010PHPCI failing

Since Sep 30Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Avataaars
=================

[](#laravel-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)
- [illuminate support](https://github.com/illuminate/support)

#### Installation:

[](#installation-1)

**-** Require the package via Composer

```
composer require darwin-8/lavataaar
```

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

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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.

### Community

Maintainers

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

### Embed Badge

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

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

PHPackages © 2026

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