PHPackages                             dbunt1tled/generate-random-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. dbunt1tled/generate-random-avatar

ActiveLibrary

dbunt1tled/generate-random-avatar
=================================

Generate random letter avatar

825↓100%[1 PRs](https://github.com/dbunt1tled/generate-random-avatar/pulls)PHPCI failing

Since May 2Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/dbunt1tled/generate-random-avatar)[ Packagist](https://packagist.org/packages/dbunt1tled/generate-random-avatar)[ RSS](/packages/dbunt1tled-generate-random-avatar/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Random Avatar
=============

[](#random-avatar)

Generate random avatars or banners.

Install
-------

[](#install)

`composer require dbunt1tled/generate-random-avatar`

Features
--------

[](#features)

- Custom Fonts
- Save PNG &amp; JPG format
- Supported shapes **ellipse**(circle), **rectangle**(square)
- Supported drivers GD, ImageMagic

Usage
-----

[](#usage)

Minimal usage

```
    $avatar = (new RAvatar())
        ->setText('RB')
        ->saveFile('0.jpg', 100);

```

[![avatar](/example/0.jpg)](/example/0.jpg)

Avatar - full random colors

```
    $avatar = (new RAvatar())
        ->setText('Igor Snow',null, 60) // name, color (null - random), size
        ->setInitials(2) // convert text to initials (2 - count letters)
        ->setShape('rectangle',90,90) // shape , width, height, color (random)
        ->setBorder(3) // width, color (random)
        ->saveFile('1.jpg', 100); // path, quality

```

[![avatar](/example/1.jpg)](/example/1.jpg)

Avatar - random background color and reverse text color based on background (black or white)

```
    $avatar = (new RAvatar())
        ->setShape('rectangle',300,90)
        ->setText('Igor Snow',null, 60)
        ->setInverseColorText()
        ->setBorder(1)
        ->saveFile('2.jpg', 100);

```

[![avatar](/example/2.jpg)](/example/2.jpg)

###  Health Score

23

↑

LowBetter than 30% of packages

Maintenance44

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f3503bc63bef254cd3ec552960fc2694a3030334447f93d2472c520b3f1d7e5?d=identicon)[dbunt1tled](/maintainers/dbunt1tled)

---

Top Contributors

[![dbunt1tled](https://avatars.githubusercontent.com/u/16355486?v=4)](https://github.com/dbunt1tled "dbunt1tled (5 commits)")

---

Tags

avatar-generatorphp

### Embed Badge

![Health badge](/badges/dbunt1tled-generate-random-avatar/health.svg)

```
[![Health](https://phpackages.com/badges/dbunt1tled-generate-random-avatar/health.svg)](https://phpackages.com/packages/dbunt1tled-generate-random-avatar)
```

PHPackages © 2026

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