Support the ongoing development of Laravel.io →
posted 10 years ago
Packages

While this isn't 100% laravel specific, I talked to some people at Laracon 2014 about it so I figured I would post the package for all to see here.

https://github.com/runmybusiness/initialcon

Basically you give the class two inputs, the User's initial(s) and something static like a user id or an email address. I compute a background color based on the md5 of the static parameter and overlay the initials on that background giving you a nice way to represent the user if they don't upload their own icon. This background color stays with the user between page refreshes so you can easily find them in a thread of icons, even if another user has the same initials.

Examples:

Example

Last updated 2 years ago.
0

it looks great, can it be used with laravel as a plugin ? if yes, then how ?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.