PHPackages                             vinicius73/laravel-instantavatar - 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. [Image &amp; Media](/categories/media)
4. /
5. vinicius73/laravel-instantavatar

ActiveLibrary[Image &amp; Media](/categories/media)

vinicius73/laravel-instantavatar
================================

Create a very pretty random avatars with ease. Package for Laravel

v1.1.0(10y ago)284806[1 issues](https://github.com/vinicius73/Laravel-InstantAvatar/issues)PHPPHP &gt;=5.4.0

Since Aug 19Pushed 10y ago3 watchersCompare

[ Source](https://github.com/vinicius73/Laravel-InstantAvatar)[ Packagist](https://packagist.org/packages/vinicius73/laravel-instantavatar)[ RSS](/packages/vinicius73-laravel-instantavatar/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Laravel - Instant Avatar
========================

[](#laravel---instant-avatar)

Create a very pretty random avatars with ease.

installation
------------

[](#installation)

Add the new required package in your composer.json

```
"vinicius73/laravel-instantavatar": "~1.1"

```

Run `composer update` or `php composer.phar update`.

After composer command, add new service provider in `app/config/app.php` :

```
Vinicius73\IAvatar\IAvatarServiceProvider::class,
```

Now, add new aliases in `app/config/app.php`.

```
'IAvatar' => Vinicius73\IAvatar\Facade\IAvatarFacade::class,
```

Finally publish the configuration file of the package `php artisan vendor:publish`

Usage
-----

[](#usage)

```
/**
 * Creates the image. Only the first letter will be passed to the image.
 * Ex.:
 * 'My String' -> output My
 * You can change this in the settings
 */
$avatar = IAvatar::random('My String');

/**
 * Save imagem in path
 * You can use `public::` Omit the full address /public
 */
$avatar->save('public::path/to/file.png');

/**
 * Output image in browser
 */
$avatar->display();
```

```
IAvatar::random('Vinicius')->save('public::avatars/vinicius.png')->display();
```

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

[](#configuration)

```
return array(
    'width'    => 150,
    'heigth'   => 150,
    'fontsize' => 80, // in px
    'chars'    => 2, // Character limit for every image
    'font' => array( // You can register or remove more sources with ease.
        'InstantAvatar::Comfortaa-Regular.ttf',
        'InstantAvatar::Roboto-Regular.ttf',
        'InstantAvatar::Ubuntu-Regular.ttf',
        'InstantAvatar::DroidSans.ttf'
    ),
    'overlay'  => 'InstantAvatar::glass.png', // A watermark that overlays the image
    'flat'     => false // Enables the flat mode
);
```

Demo
----

[](#demo)

### Default

[](#default)

[![Instant Avatar](https://camo.githubusercontent.com/c87bda1feff37b362dde66e000dacd2d4c2a6f49274dae9c06b90a5dd82c6fbb/687474703a2f2f692e696d6775722e636f6d2f555a42716d58472e706e67)](https://camo.githubusercontent.com/c87bda1feff37b362dde66e000dacd2d4c2a6f49274dae9c06b90a5dd82c6fbb/687474703a2f2f692e696d6775722e636f6d2f555a42716d58472e706e67)

### Flat

[](#flat)

Color based in [avatarly](https://github.com/lucek/avatarly)

[![Instant Avatar Flat](https://camo.githubusercontent.com/74b0973aa2856d23dec67b2e38bc6bcc6f435c10a2955755dc2ef0667dcac5d5/687474703a2f2f692e696d6775722e636f6d2f73426b3547485a2e706e67)](https://camo.githubusercontent.com/74b0973aa2856d23dec67b2e38bc6bcc6f435c10a2955755dc2ef0667dcac5d5/687474703a2f2f692e696d6775722e636f6d2f73426b3547485a2e706e67)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

3874d ago

Major Versions

v0.4 → v1.1.02015-10-04

PHP version history (2 changes)v0.3PHP &gt;=5.3.0

v1.1.0PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/87433b0d6b98d16ec1d0bc99dfd4efb7c00ed1e05ed1fc503a36ff89b9e82905?d=identicon)[vinicius73](/maintainers/vinicius73)

---

Top Contributors

[![vinicius73](https://avatars.githubusercontent.com/u/1561347?v=4)](https://github.com/vinicius73 "vinicius73 (19 commits)")

### Embed Badge

![Health badge](/badges/vinicius73-laravel-instantavatar/health.svg)

```
[![Health](https://phpackages.com/badges/vinicius73-laravel-instantavatar/health.svg)](https://phpackages.com/packages/vinicius73-laravel-instantavatar)
```

###  Alternatives

[creativeorange/gravatar

A Laravel Gravatar package for retrieving gravatar image URLs or checking the existance of an image.

5467.5M54](/packages/creativeorange-gravatar)[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[ralphjsmit/laravel-glide

Auto-magically generate responsive images from static image files.

4719.6k5](/packages/ralphjsmit-laravel-glide)[spatie/laravel-og-image

Generate OG images for your Laravel app

305.2k](/packages/spatie-laravel-og-image)[nikkanetiya/laravel-color-palette

Laravel Wrapper for `ksubileau/color-thief-php`. Grabs the dominant color or a representative color palette from an image. Uses PHP and GD or Imagick.

3312.6k](/packages/nikkanetiya-laravel-color-palette)

PHPackages © 2026

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