PHPackages                             cookiemc337/laravel-adorable - 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. cookiemc337/laravel-adorable

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

cookiemc337/laravel-adorable
============================

Generate an Adorable Avatar for Laravel

02PHP

Since Feb 28Pushed 1y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Adorable Avatar for Laravel
===========================

[](#adorable-avatar-for-laravel)

LaravelAdorable is an library to generate nice avatars on Laravel.

[![Latest Version](https://camo.githubusercontent.com/802f30471a534e0e82f2ebddee6fee9773071170770f2a4d032dbdbc13333913/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61736269696e2f6c61726176656c2d61646f7261626c653f7374796c653d666c61742d737175617265266c6162656c3d4c617465737425323056657273696f6e)](https://github.com/asbiin/laravel-adorable/releases)[![Downloads](https://camo.githubusercontent.com/bf5331384d7cfd2ff249e1ed4c7275ae8d783353d809d31d5026fb92710fdb37/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61736269696e2f6c61726176656c2d61646f7261626c653f7374796c653d666c61742d737175617265266c6162656c3d446f776e6c6f616473)](https://packagist.org/packages/asbiin/laravel-adorable)[![Workflow Status](https://camo.githubusercontent.com/e1f96c53bdf43638c9fdae0020a70a736c5072ef69ae6fc03076773182d6973f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f61736269696e2f6c61726176656c2d61646f7261626c652f556e697425323074657374733f7374796c653d666c61742d737175617265266c6162656c3d576f726b666c6f77253230537461747573)](https://github.com/asbiin/laravel-adorable/actions?query=branch%3Amain)[![Quality Gate](https://camo.githubusercontent.com/3c425ceb37594e73c0208d76798adbe060f5889b65590c97d560cc5c892d3c27/68747470733a2f2f696d672e736869656c64732e696f2f736f6e61722f7175616c6974795f676174652f61736269696e5f6c61726176656c2d61646f7261626c653f7365727665723d6874747073253341253246253246736f6e6172636c6f75642e696f267374796c653d666c61742d737175617265266c6162656c3d5175616c69747925323047617465)](https://sonarcloud.io/dashboard?id=asbiin_laravel-adorable)[![Coverage Status](https://camo.githubusercontent.com/6e1159b66a57d0d563743e96b3c3e083e56cbbe8a61ddb06f4c904624aa360f1/68747470733a2f2f696d672e736869656c64732e696f2f736f6e61722f636f7665726167652f61736269696e5f6c61726176656c2d61646f7261626c653f7365727665723d6874747073253341253246253246736f6e6172636c6f75642e696f267374796c653d666c61742d737175617265266c6162656c3d436f766572616765253230537461747573)](https://sonarcloud.io/dashboard?id=asbiin_laravel-adorable)

[![avatar1](https://user-images.githubusercontent.com/25419741/149010870-c8203086-f17c-4549-84c3-f145bda6165d.png)](https://user-images.githubusercontent.com/25419741/149010870-c8203086-f17c-4549-84c3-f145bda6165d.png)

Installation
============

[](#installation)

You may use Composer to install this package into your Laravel project:

```
composer require asbiin/laravel-adorable
```

You don't need to add this package to your service providers.

Support
-------

[](#support)

This package supports Laravel 8 and newer, and has been tested with php 7.4 and newer versions.

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

[](#configuration)

You can publish the LaravelAdorable configuration in a file named `config/adorable.php`. Just run this artisan command:

```
php artisan vendor:publish --tag="laraveladorable-config"
```

This package depends on `intervention/image`. It requires one of the following image libraries:

- GD Library (&gt;=2.0)
- *or*: Imagick PHP extension (&gt;=6.5.7)

You can configure the image library to use in the `driver` setting of the `config/adorable.php` file.

Usage
=====

[](#usage)

Use `LaravelAdorable` facade to generate avatar:

```
use Illuminate\Support\Str;
use LaravelAdorable\Facades\LaravelAdorable;

…

  $size = 200;
  $hash = Str::uuid()->toString();
  $dataUrl = LaravelAdorable::get($size, $hash);
  // $dataUrl: "data:image/png;base64,..."
```

This generates a base64 [data-url](https://en.wikipedia.org/wiki/Data_URI_scheme) content, like `data:image/png;base64,…`.

You can display a data-url in html with:

```

```

License
=======

[](#license)

Author: [Alexis Saettler](https://github.com/asbiin)

Copyright © 2022.

Licensed under the MIT License. [View license](/LICENSE.md).

Inspiration
===========

[](#inspiration)

This work is mainly inspired by [itsthatguy/avatars-api-middleware](https://github.com/itsthatguy/avatars-api-middleware) (MIT License).

Images resources are Copyright (c) 2014 Adorable IO LLC.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 Bus Factor1

Top contributor holds 65.8% 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/7cf1d6d8d7218eeace3f50fe0bd639ba0774f199124f3ad250aa63d117bebc95?d=identicon)[CookieMC337](/maintainers/CookieMC337)

---

Top Contributors

[![asbiin](https://avatars.githubusercontent.com/u/25419741?v=4)](https://github.com/asbiin "asbiin (25 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (11 commits)")[![CookieMC337](https://avatars.githubusercontent.com/u/51511368?v=4)](https://github.com/CookieMC337 "CookieMC337 (1 commits)")[![imgbot[bot]](https://avatars.githubusercontent.com/in/4706?v=4)](https://github.com/imgbot[bot] "imgbot[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/cookiemc337-laravel-adorable/health.svg)

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

###  Alternatives

[artesaos/seotools

SEO Tools for Laravel and Lumen

3.3k5.1M60](/packages/artesaos-seotools)[murtukov/php-code-generator

A library to generate php code

274.7M2](/packages/murtukov-php-code-generator)

PHPackages © 2026

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