定制 ianm/boring-avatars 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ianm/boring-avatars

最新稳定版本:2.0.0-beta.1

Composer 安装命令:

composer require ianm/boring-avatars

包简介

Replace default Flarum avatars with Boring Avatars.

关键字:

README 文档

README

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

  • Choose from 6 themes + plus an exclusive animated version of the "ring" theme
  • Customize the color palette used
  • Completely self contained, no external calls are required
  • Multiple identifier configuration (Select from ID, username or email address to generate unique avatars)
  • SVG avatars, which are directly included in the user object - no additional network requests to retrieve avatars
  • Automatically updates the avatar if the identifier changes
  • Supports GDPR export, anonymization, deletion

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

统计信息

  • 总下载量: 7.08k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-16