PHPackages                             humans/avatars - 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. humans/avatars

ActiveLibrary

humans/avatars
==============

1.1.0(2y ago)01.2kproprietaryPHP

Since Mar 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/humans/avatars)[ Packagist](https://packagist.org/packages/humans/avatars)[ RSS](/packages/humans-avatars/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

Humans — Default Avatars
========================

[](#humans--default-avatars)

This package allows downloads from multiple providers and it returns the first successful result.

Setup
-----

[](#setup)

```
composer require humans/avatars
```

Usage
-----

[](#usage)

This will return the first successful photo.

```
use Humans\Avatars\Facades\Avatars;
use Humans\Avatars\Attempt;
use Humans\Avatars\Providers;

$response = Avatars::attempt(
    new Providers\Unavatar('jaggy@humans.ph'),
    new Providers\Unavatar('jaggy'),
    new Providers\Unavatar('jaggy@hey.com'),
    new Providers\UiAvatars('Jaggy Gauran'),
);

$response->contents;
$response->extension;
```

Testing
-------

[](#testing)

Avatars provides two testing fakes to make testing a lot easier.

### Force a success with specific contents

[](#force-a-success-with-specific-contents)

```
Avatars::pass('example image content', 'gif');
```

### Force the avatar to fail

[](#force-the-avatar-to-fail)

```
Avatars::fail();
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Total

2

Last Release

791d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/21359371?v=4)[Humans](/maintainers/humans)[@humans](https://github.com/humans)

---

Top Contributors

[![jaggy](https://avatars.githubusercontent.com/u/1993075?v=4)](https://github.com/jaggy "jaggy (9 commits)")

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/humans-avatars/health.svg)

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

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[laravel/reverb

Laravel Reverb provides a real-time WebSocket communication backend for Laravel applications.

1.5k9.4M48](/packages/laravel-reverb)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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