tourze/user-avatar-bundle
Tourze UserAvatarBundle provides user avatar management for Symfony applications, offering services for generating, storing, and serving avatars, Doctrine entity integration, and configurable image processing for consistent profile pictures.
composer require tourze/user-avatar-bundle. Note that this is a Symfony bundle; for Laravel you may need to use it as a standalone library or through a bridge package.README.md and config/ directory (if published) to understand available avatar providers (e.g., Gravatar, UI Avatars, local generation) and configuration options.getAvatarUrl($user->email), then display it with <img src="{{ $avatarUrl }}">.@avatar($user) that outputs the avatar URL, optionally with fallback to initials.avatar_url accessor on your User model that uses the package’s service to compute the URL, enabling $user->avatar_url everywhere.Cache::remember) to avoid repeated API calls or disk reads, especially for Gravatar or remote providers.config/ files and bind them to the service constructor.User model always has a valid email; otherwise, fall back to a default avatar or initials.AvatarProviderInterface) to plug in custom providers (e.g., your own S3‑backed avatar service). The bundle may allow registering custom providers via tags—adapt this to Laravel’s service container.How can I help you explore Laravel packages today?