Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Fin Avatar Laravel Package

finity-labs/fin-avatar

Privacy-first avatar provider for Filament v4/v5. Generates initials-based SVG avatars locally via a dedicated route (no Gravatar/ui-avatars requests), auto-strips titles like Dr/Mr/PhD, uses panel primary color, and enables 1-year browser caching.

View on GitHub
Deep Wiki
Context7

FinAvatar for Filament

finity-labs-fin-avatar

FILAMENT 4.x FILAMENT 5.x Latest Version on Packagist Tests Code Style Total Downloads License

A privacy-focused, high-performance avatar provider for Filament V4 and V5. It generates SVGs locally using a dedicated route, ensuring zero external requests (GDPR compliant) and utilizing browser caching for instant loads.

Features

  • Zero External APIs: No data sent to ui-avatars.com or Gravatar.

  • Smart Initials: Automatically strips "Mr.", "Dr.", "PhD" etc.

  • Theme Aware: Uses your Filament Panel's primary color automatically.

  • High Performance: SVGs are cached by the browser for 1 year.

Installation

You can install the package via composer:

composer require finity-labs/fin-avatar

Running the install command will configure the selected panels automatically:

php artisan finity-labs:install

Usage

Add in AdminPanelProvider.php:

use FinityLabs\FinAvatar\AvatarProviders\UiAvatarsProvider;

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->defaultAvatarProvider(UiAvatarsProvider::class);
}

Configuration (Optional)

Publish the config file to customize ignored prefixes (like "Mr", "Dr"), default background color and text color:

php artisan vendor:publish --tag=fin-avatar-config

:bulb: Note: Leave default_bg null to use theme color as background.

Credits

License

The MIT License (MIT). Please see License File for more information.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor