philetaylor/gravatar-bundle
A Symfony bundle for integrating Gravatar avatars into your application. It provides Twig helpers to generate Gravatar URLs with configurable size, rating, and default image settings, making it easy to display consistent user profile images across your site. Simple installation and configuration.
gravatar.com/avatar/{hash} plus default-image and size parameters. The realistic decision is "in-house helper vs. thin dependency," not "buy vs. buy." This release does not change that math.Consider it when all of the following hold:
Symfony\Component\HttpKernel\DependencyInjection\Extension is internal as of Symfony 7.1 and slated for deprecation in 8.1. The bundle still extends that class, so a future breaking change is already telegraphed.Look elsewhere — or write it yourself — when:
<img src> and hopes.For executives: This is a tiny, free, MIT-licensed convenience wrapper around Gravatar — the service that maps an email address to a profile picture. It is not a strategic asset and not a platform decision. The strategic question is unchanged: do we pull third-party images (fast, free, zero storage, but leaks an email hash externally and shows nothing for users without a Gravatar account) or build first-party uploads (cost, infrastructure, moderation, but full control and better privacy posture)? Recommendation: treat Gravatar as an interim default to unblock profile work, and keep first-party avatars on the roadmap behind a real user need. The 7.0.0.2 release is a maintenance fix, not a capability change; do not spend political capital or procurement cycles on this dependency. A single engineer can replace it in under a day.
For engineering: The package is a Symfony bundle providing a configurable service and a Twig helper that returns a Gravatar URL from an email. That is still its entire surface area. The 7.0.0.2 release is a compatibility/deprecation fix: the bundle's DI extension still extends Symfony\Component\HttpKernel\DependencyInjection\Extension, which is internal since Symfony 7.1 and slated for deprecation in 8.1 in favor of Symfony\Component\DependencyInjection\Extension\Extension. Two implications: (1) it now targets Symfony 7.x, correcting the earlier "Symfony 4 only" read; (2) a breaking migration is already signposted for Symfony 8.1, so if you adopt, budget for that. It remains a single-maintainer, zero-dependents package — treat it as sample code, not infrastructure. Because the logic is a hash plus a query string, the sensible move is still to copy the helper into our codebase rather than add a supply-chain dependency: it removes the upgrade risk, lets us add caching, a default-avatar policy, and a self-hosted proxy for privacy, and it costs an afternoon. If we do take the dependency, pin it, vendor it, and put a fallback behind every avatar render so a blocked or slow Gravatar endpoint never degrades page load. Flag for the record: this is Symfony-only, so if the target product is Laravel, the answer is no and the work is a small in-house helper instead.
How can I help you explore Laravel packages today?