PHPackages                             tourze/user-avatar-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. tourze/user-avatar-bundle

ActiveSymfony-bundle[Image &amp; Media](/categories/media)

tourze/user-avatar-bundle
=========================

提供用户头像管理和处理功能的Symfony Bundle

1.0.0(8mo ago)01161MITPHPPHP ^8.2CI passing

Since May 17Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/tourze/user-avatar-bundle)[ Packagist](https://packagist.org/packages/tourze/user-avatar-bundle)[ RSS](/packages/tourze-user-avatar-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (13)Versions (3)Used By (1)

User Avatar Bundle
==================

[](#user-avatar-bundle)

[English](README.md) | [中文](README.zh-CN.md)

[![Latest Version](https://camo.githubusercontent.com/0fe227d45c9843da6070327d2390fe1fb78020b0026c40788b864fc1ebe7160a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f757365722d6176617461722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/user-avatar-bundle)[![PHP Version](https://camo.githubusercontent.com/0fe7b15e266386f58b1cfba6f3af49e6307cf93b7c44f81921ca0f7481be9d60/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f75727a652f757365722d6176617461722d62756e646c653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/user-avatar-bundle)[![License](https://camo.githubusercontent.com/23587744d2e2f54d04c3c745b96e1ca6f2521e5d6d9f405210506c6b0380afd3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746f75727a652f757365722d6176617461722d62756e646c653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/user-avatar-bundle)[![Total Downloads](https://camo.githubusercontent.com/97878ac6175bcee77e05cc0612fda0672946d3af20d7814a1a8bf2810a0784c3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f757365722d6176617461722d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/user-avatar-bundle)

A Symfony bundle that provides user avatar services with support for custom avatars, Gravatar integration, and fallback to default avatars.

Features
--------

[](#features)

- **Custom Avatar Support**: Display user-uploaded avatars when available
- **Gravatar Integration**: Automatically generates Gravatar URLs based on user email
- **Default Avatar Fallback**: Shows default avatar when user has no custom avatar or email
- **Configurable Sizes**: Supports different avatar sizes (default 128px)
- **Extensible Interface**: Easy to extend with custom avatar implementations

Installation
------------

[](#installation)

```
composer require tourze/user-avatar-bundle
```

Quick Start
-----------

[](#quick-start)

1. Add the bundle to your `config/bundles.php`:

```
