New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

gridprinciples/laravel-placeholder-avatars

Serve SVG avatars from your Laravel application
1,108 2

Larablocks Analysis

gridprinciples/laravel-placeholder-avatars works with Laravel 10 to 13 (latest release v0.3.2, Nov 20, 2026).

Promising: maintained and up to date, meets 2 of 4 checks; not yet widely used.

  • Works with Laravel 13, the current version
  • Released in the last 12 months (Nov 20, 2026)
  • 20 downloads a month (needs 10,000)
  • 2 GitHub stars (needs 100)

State

Maintained
  • Last stable release: Nov 20, 2026.
  • 2 releases in the last 12 months.
  • First released: Aug 7, 2024.
  • Monthly downloads: 20.
  • 1 open issue on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.

Install
composer require gridprinciples/laravel-placeholder-avatars
Latest Version:v0.3.2
PHP:^8.2
Laravel:10 – 13
License:MIT
Last Updated:Nov 20, 2026
Links: GitHub  ·  Packagist
Maintainer: gbrock

Serve SVG avatars from your Laravel application

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package gets you several BoringAvatar designs rendered in your Laravel application as SVGs. They can be rendered via configurable URL or by direct usage of a Blade component.

Installation

You can install the package via composer:

composer require gridprinciples/laravel-placeholder-avatars

Usage

Via URL

If you plan on rendering via URL, you must register it in your routes file:

// routes/web.php
use GridPrinciples\PlaceholderAvatars\Facades\PlaceholderAvatars;

PlaceholderAvatars::route('avatar.svg', type: 'beam');

By default, you can use query parameters to set the generation options. For example:

/avatar.svg?name=JohnDoe&square=1

...would generate the same face every time ("JohnDoe" as the seed) in a square format.

If you want to dictate which options are used in generation, you can supply these options when adding the route:

// routes/web.php
use GridPrinciples\PlaceholderAvatars\Facades\PlaceholderAvatars;

PlaceholderAvatars::route('face.svg',
    // which design should render (optional; defaults to "beam")
    type: 'marble',

    // enforce a red color scheme
    colors: ['#440000', '#110000', '#CC0000'],

    // force a circular avatar, a square will never be produced even if requested
    square: false,

    // we are rendering an SVG so this doesn't matter much, but you can set the size
    size: 256,
);

Via component

You can also render the SVGs inline within any Blade component:

<x-placeholder-avatar::marble :name="$user->uuid" class="rounded-lg" square />

Avatars

The following types from BoringAvatars are currently supported:

  • beam
  • marble
  • pixel

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

Related Packages

gridprinciples/blade-forms

CSS-agnostic form rendering via Laravel Blade

690 1
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607

Version History

Version Released PHP Laravel License
v0.3.2 ^8.2 ^10.0||^11.0||^12.0||^13.0 MIT
v0.3.1 ^8.2 ^10.0||^11.0||^12.0||^13.0 MIT
v0.3.0 ^8.2 ^10.0||^11.0||^12.0 MIT
v0.2.0 ^8.2 ^10.0||^11.0 MIT
v0.1.1 ^8.2 ^10.0||^11.0 MIT