zephyrisle/flarum-autoavatar
Composer 安装命令:
composer require zephyrisle/flarum-autoavatar
包简介
Automatically generate and set avatars for new users in Flarum.
README 文档
README
Automatically generate and set avatars for new users in Flarum.
Features
- Letter Avatar: Generates an image based on the user's first letter. Highly customizable CSS.
- Random Image API: Fetches a random image from a specified URL (e.g., Unsplash, Picsum) and saves it locally.
- Multiavatar: Generates unique, colorful SVG avatars (converted to PNG) using the Multiavatar library.
- Asynchronous: Uses Flarum's queue system to generate avatars without slowing down the registration process.
- Local Storage: All avatars are downloaded and saved to Flarum's local storage.
Installation
composer require zephyrisle/flarum-autoavatar
Configuration
- Enable the extension in your Flarum admin panel.
- Go to the Auto Avatar settings page.
- Select your preferred avatar mode:
- Letter Avatar: Set background color, text color, and shape (circle or square).
- Random Image API: Provide a primary and fallback URL.
- Multiavatar: No extra configuration needed, uses user ID/email for unique generation.
- Ensure your Flarum queue is running (
php flarum queue:work) for asynchronous generation.
Requirements
- Flarum v2.0 or higher.
- PHP GD extension (for Letter Avatar and Multiavatar conversion).
- PHP 8.3 or higher.
License
MIT
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-04