imorland / flarum-ext-boring-avatars

Replace default Flarum avatars with Boring Avatars.
MIT License
0 stars 0 forks source link

Boring Avatars

License Latest Stable Version Total Downloads

A Flarum extension. Replace default Flarum avatars with Boring Avatars.

About

Utilize generated "Boring Avatars" on your Flarum forum, without compromising your user privacy. It is a PHP port of the React based Boring Avatars

Features

Screenshots

Bauhaus

bauhaus

Beam

beam

Marble

marble

Pixel

pixel

Ring

ring

Sunset

sunset

Settings

settings

Usage

When first enabled, a background task will be dispatched which will begin generating avatars for all of your users. Needless to say, if you have 100's of thousands of users, this could take a few minutes!

Want to make changes to the generation settings? No problem, once the settings are changed, another background task will run to update the avatars.

This extension is best used alongside a queue, especially when the forum has a large number of users.

An API endpoint is also available to directly retrieve the avatar for a user:

/api/users/[id]/boring-avatar

this will return the SVG image file for the given user.

Installation

Install with composer:

composer require ianm/boring-avatars:"*"

Updating

composer update ianm/boring-avatars:"*"
php flarum migrate
php flarum cache:clear

Links

Support

Please consider supporting my extension development and maintenance work.

Buy Me A Coffee