A recent project of mine involved using Gravatar, so I made a Twig Extension to provide filters for simplified Avatar generation.

You can find it on Github and Packagist.

It was quite an interesting experience, and I used parts from the League Skeleton while making it to set up PHPUnit, Travis and Scrutinizer and may write more about this soon.

Let me know if you use this or have any suggestions for improving it, other than that, enjoy!