Weave 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

Filament Dicebear Laravel Package

leek/filament-dicebear

DiceBear avatar provider for Filament panels, supporting all 31 DiceBear styles with caching, per-model customization, and self-hosted instances. Just register the plugin and provider to give users without custom avatars a generated DiceBear avatar.

View on GitHub
Deep Wiki
Context7
v2.0.0

What's Changed

Upgrades the plugin to DiceBear v10. This is a major release: see UPGRADE.md before updating.

Rendering

  • Native PHP rendering by default. Avatars are generated in-process by dicebear/core + dicebear/styles, so there are no network calls or rate limits, and the output is byte-identical to the HTTP API
  • HTTP driver is still available with ->driver('http') for public or self-hosted APIs. The default API version is now 10.x
  • Raster formats: ->format('png' | 'jpg' | 'webp' | 'avif'), rendered by the HTTP API
  • Custom styles: render your own definition JSON with ->customStyle('brand', $path) or the custom_styles config key
  • Error handling: invalid options are passed to report() and fall back to the HTTP API URL instead of breaking the page

Styles

  • 61 styles (was 31), including blobs, clay, gaze, marbles, planets, voxel-art and waves
  • New category() (Minimalist, Characters, Scenes), isAnimated() and DiceBearStyle::animated()

Animation

  • ->animated() turns on the opt-in animation of the 19 animated styles, at a speed picked by the seed
  • ->animationSpeed(AnimationSpeed::Slow) fixes the speed
  • Pure CSS inside the SVG, so it plays in <img> tags and respects prefers-reduced-motion
  • A per-model tags filter no longer switches animation off

Options

  • Every v10 core option: borderRadius, translateX/translateY, title, idRandomization, fontFamily, fontWeight, tags, and background Fill / FillStops / Angle / Order
  • Options that take a range accept a fixed value or a [min, max] pair
  • New options config key for global defaults using v10 names, plus animation, driver and format keys

Caching

  • Cache file names now hash the options together with the DiceBear core/styles version (or the API version), so upgrading DiceBear never serves stale avatars

Breaking Changes

  • scale() now takes a factor from 0 to 10 instead of a percentage
  • getSize(), getRadius(), getScale(), getRotate(), getFlip(), getBackgroundColor() and getBackgroundType() were removed. Use getCoreOption() instead
  • Thumbs->isMinimalist() is now false, following DiceBear's own categories
  • Cache file names changed, so existing 1.x cache files are never served

Deprecations (removal in 3.0)

  • radius() and backgroundType(), the radius and backgroundType option keys, the value gradientLinear, the strings 'true'/'false' for flip, the flat 1.x config keys, and style options without the Variant suffix (eyes → eyesVariant)
  • Each raises an E_USER_DEPRECATED notice once per process

Maintenance

  • Bump actions/checkout to 7.0.1

Full Changelog: https://github.com/leek/filament-dicebear/compare/v1.2.2...v2.0.0

v1.2.2

What's Changed

Security and CI-hygiene improvements:

  • SHA-pinned Actions — all GitHub Actions in CI pinned to commit SHAs
  • Pint code-style workflow — new CI check running pint --test
  • Dependabot — weekly Composer and Actions updates with a 7-day cooldown
  • Security policy — added SECURITY.md with private vulnerability reporting instructions
  • Leaner dist archives — .gitattributes export-ignore rules keep tests, CI config, and build tooling out of Composer installs

Full Changelog: https://github.com/leek/filament-dicebear/compare/v1.2.1...v1.2.2

v1.2.1

Docs / metadata only — no code or behavior changes.

  • Add a More Filament plugins by Leek section to the README cross-linking the premium plugins (UI Plus, Workflow Engine, Decision Tables) and the free/open-source siblings.
  • Add relevant composer.json suggest entries pointing at companion plugins (sorted alphabetically).
v1.1.0

What's Changed

Fixes

  • Cache key integrity — Cache filename now includes all query params (size, radius, options, etc.) to prevent serving stale avatars when config changes
  • Plugin config inheritance — HasDiceBearAvatar trait now inherits panel-registered plugin config (baseUrl, apiVersion, cache settings) instead of creating a fresh instance
  • Invalid style fallback — DiceBearStyle::tryFrom() with Initials fallback prevents crashes on invalid style values
  • Safe cache paths — Seeds are normalized via Str::slug() for filesystem safety
  • HTTP timeout/retry — Added timeout(5) and retry(2, 100) to prevent slow API calls from blocking page rendering
  • Error resilience — \Throwable caught at all IO boundaries with graceful fallbacks for storage failures
v1.0.0

Initial Release

DiceBear avatar provider for Filament panels.

  • All 31 DiceBear avatar styles via DiceBearStyle enum
  • DiceBearPlugin with fluent configuration (style, size, radius, scale, flip, rotate, background, caching, self-hosting)
  • DiceBearProvider implementing Filament's AvatarProvider with disk caching and data URI fallback
  • HasDiceBearAvatar trait for per-model customization with uploaded photo fallback hook
  • Publishable config file
  • Supports Filament v3, v4, and v5
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.
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log