PHPackages                             adetoola/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. adetoola/avatar

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

adetoola/avatar
===============

Gmail-like default avatars using initials

0.1.0(9y ago)120MITPHPPHP ~7.0

Since Mar 28Pushed 9y ago1 watchersCompare

[ Source](https://github.com/adetoola/avatar)[ Packagist](https://packagist.org/packages/adetoola/avatar)[ Docs](https://github.com/adetoola/avatar)[ RSS](/packages/adetoola-avatar/feed)WikiDiscussions master Synced 4w ago

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

avatar
======

[](#avatar)

Gmail-like default avatars using initials

Contents
--------

[](#contents)

- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
- [Contributing](#contributing)
- [Security](#security)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

### Via Composer in Terminal

[](#via-composer-in-terminal)

```
$ composer require adetoola/sms
```

### Via Composer in composer.json

[](#via-composer-in-composerjson)

Begin by installing `avatar` by editing your project's `composer.json` file. Just add

```
'require": {
    "adetoola/avatar": "0.1.*"
}

```

Then run `composer install` or `composer update`.

If you are using laravel, open `config/app.php` add in the `providers` array.

```
'providers' => [
    // ...
    Adetoola\Avatar\AvatarServiceProvider::class,
],
```

Then, find the `aliases` and add `Facade` to the array.

```
'aliases' => [
    // ...
    'Avatar' => Adetoola\Avatar\Facades\AvatarFacade::class,
],
```

Configuration
-------------

[](#configuration)

After installing, publish the package configuration file into your application by running

```
php artisan vendor:publish
```

\##Usage Avatar is built to be easy to use.

```
$avatar = new Adettola\Avatar\Avatar();
$image = $avatar->size(150)
                ->background('#fff')
                ->rounded()
                ->color('#eee')
                ->font('roboto.ttf')
                ->fontSize(0.667)
                ->generate()
                ->stream();

## Change log

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

## Security

If you discover any security related issues, please email adetola.onasanya@gmail.com instead of using the issue tracker.

## Credits

- [Adetola Onasanya](https://github.com/Adetoola)

## License

SMS is an open-sourced package licensed under the [MIT license](http://opensource.org/licenses/MIT).
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

3381d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10079275?v=4)[Adetola Onasanya](/maintainers/adetoola)[@adetoola](https://github.com/adetoola)

---

Top Contributors

[![adetoola](https://avatars.githubusercontent.com/u/10079275?v=4)](https://github.com/adetoola "adetoola (3 commits)")

---

Tags

avatarnameInitialsgmailadetoola

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravolt/avatar

Turn name, email, and any other string into initial-based avatar or gravatar.

2.0k5.6M38](/packages/laravolt-avatar)[unopim/unopim

UnoPim Laravel PIM

10.5k2.2k](/packages/unopim-unopim)[yohang88/letter-avatar

Generate user avatar using name initials letter.

126566.8k3](/packages/yohang88-letter-avatar)[symfony/ux-cropperjs

Cropper.js integration for Symfony

19322.9k3](/packages/symfony-ux-cropperjs)[flarum/core

Delightfully simple forum software.

201.4M2.2k](/packages/flarum-core)

PHPackages © 2026

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